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

Deployment fails to Azure Gov #1687

Open
MSBrett opened this issue Jun 21, 2024 · 3 comments
Open

Deployment fails to Azure Gov #1687

MSBrett opened this issue Jun 21, 2024 · 3 comments
Labels
Area: Sovereign 👽 GH issues raised for sovereign clouds (US Gov, China) bug Something isn't working

Comments

@MSBrett
Copy link

MSBrett commented Jun 21, 2024

Describe the bug
Deployment fails to Azure Gov

Steps to reproduce

  1. Log into the Azure Gov Portal
  2. From the search bar search for and choose "Deploy a custom template".
  3. Select "Azure Landing Zone" from the list of templates.
  4. Select "Azure Government" from the list of supported clouds.
  5. Fill out the forms and deploy the template using default values - 3 subscriptions provided.
  6. Deployment fails with this error:

{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "BadRequest",
"message": "{\r\n "error": {\r\n "code": "PolicyDefinitionNotFound",\r\n "message": "The policy set definition 'Enforce-EncryptTransit' request is invalid. The following policy definition could not be found: '/providers/Microsoft.Authorization/policyDefinitions/0e80e269-43a4-4ae9-b5bc-178126b8a5cb'."\r\n }\r\n}"
}
]
}
}

The same error occurs when deploying from Learn and Github.

@MSBrett MSBrett added the bug Something isn't working label Jun 21, 2024
@Springstone Springstone added the Area: Sovereign 👽 GH issues raised for sovereign clouds (US Gov, China) label Jun 24, 2024
@Springstone
Copy link
Member

Hi @MSBrett thanks for raising this issue. Basically, this means one of the policies in that initiative is not available in Azure Gov cloud. Unfortunately, we currently don't have any way to validate sovereign cloud deployments (and it is a very complicated process to validate if policies are available in each of the sovereign clouds).

We are currently in the process of someone in our team getting access to Azure Gov (Fairfax) and hopefully we can improve the quality and reliability for those customers.

@sdolgin
Copy link

sdolgin commented Sep 16, 2024

@Springstone +1 for my customer currently attempting to deploy ALZ into Fairfax. Any guidance or a work around?

Here is a partial list of initiatives failing for us as of Sept 12

Policy Set Name Resource ID
Enforce-Guardrails-ContainerApps /providers/Microsoft.Authorization/policyDefinitions/8b346db6-85af-419b-8557-92cee2c0f9bb
Enforce-Guardrails-Network /providers/Microsoft.Authorization/policyDefinitions/6484db87-a62d-4327-9f07-80a2cbdf333a
Enforce-Guardrails-KeyVault /providers/Microsoft.Authorization/policyDefinitions/86810a98-8e91-4a44-8386-ec66d0de5d57
Enforce-Guardrails-Storage /providers/Microsoft.Authorization/policyDefinitions/361c2074-3595-4e5d-8cab-4f21dffc835c
Enforce-EncryptTransit_20240509 /providers/Microsoft.Authorization/policyDefinitions/0e80e269-43a4-4ae9-b5bc-178126b8a5cb
Enforce-Guardrails-KeyVault-Sup /providers/Microsoft.Authorization/policyDefinitions/84d327c3-164a-4685-b453-900478614456
Enforce-Guardrails-Automation /providers/Microsoft.Authorization/policyDefinitions/6d02d2f7-e38b-4bdc-96f3-adc0a8726abc
Enforce-EncryptTransit /providers/Microsoft.Authorization/policyDefinitions/0e80e269-43a4-4ae9-b5bc-178126b8a5cb
Enforce-Guardrails-MySQL /providers/Microsoft.Authorization/policyDefinitions/3a58212a-c829-4f13-9872-6371df2fd0b4

all of these are reported as "could not be found"

/cc @brsteph

@JCoreMS
Copy link

JCoreMS commented Sep 19, 2024

Given the deployment is US Gov specific, is it possible to omit or replace these with what IS available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Sovereign 👽 GH issues raised for sovereign clouds (US Gov, China) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants