Description
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.