Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running CreateSubnetInjectionEnterprisePolicy.ps1 #624

Open
RyC67 opened this issue Aug 23, 2024 · 0 comments
Open

Error running CreateSubnetInjectionEnterprisePolicy.ps1 #624

RyC67 opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@RyC67
Copy link

RyC67 commented Aug 23, 2024

When running the script (CreateSubnetInjectionEnterprisePolicy.ps1 ) I'm getting the following error:

New-AzResourceGroupDeployment: C:\temp\Common\Common\EnterprisePolicyOperations.ps1:33
Line |
33 | … $policy = New-AzResourceGroupDeployment -DeploymentName "EPDeployme …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1:43:43 PM - The deployment 'EPDeployment' failed with error(s). Showing 1 out of 1 error(s). Status Message: The virtual
| network Id given for enterprise policy in tenant 1234-1234-1234-1234-1234 is null or empty.
| (Code:InputValidationError) CorrelationId: a191ec15-ec37-476b-845a-c463144c5214
Error creating Enterprise policy {
"ResourceGroupName": "rg-name-01",
"OnErrorDeployment": null,
"DeploymentName": "EPDeployment",
"CorrelationId": "a191ec15-ec37-476b-845a-c463144c5214",
"ProvisioningState": "Failed",
"Timestamp": "2024-08-23T12:43:41.8786373Z",
"Mode": "Incremental",
"TemplateLink": null,
"TemplateLinkString": null,
"DeploymentDebugLogLevel": null,
"Parameters": {},
"Tags": null,
"ParametersString": "",
"Outputs": null,
"OutputsString": null
}

Running the CreateIdentityEnterprisePolicy.ps1 script worked without any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants