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

Issues deploying template #4

Closed
frankhu-2021 opened this issue Oct 21, 2019 · 6 comments
Closed

Issues deploying template #4

frankhu-2021 opened this issue Oct 21, 2019 · 6 comments

Comments

@frankhu-2021
Copy link

frankhu-2021 commented Oct 21, 2019

Hello,

I'm having issues deploying this template, when I try deploying it the azure portal is throwing the error below.

I believe it's because the VM doesn't have access to anything external, because when i try to access anything in the browser on the vm it throws an unable to connect error in the browser.

See the error below.

{
    "code": "DeploymentFailed",
    "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
    "details":
    [
        {
            "code": "Conflict",
            "message": "{ 
				"status": "Failed", 
				"error": { 
						"code": "ResourceDeploymentFailure", 
						"message": "The resource operation completed with terminal provisioning state 'Failed'.", 
						"details": [ { 
							"code": "VMExtensionProvisioningError", 
							"message": "VM has reported a failure when processing extension 'Microsoft.Powershell.DSC'. Error message: "The DSC Extension failed to execute: Error downloading https://raw.githubusercontent.com/Microsoft/aad-hybrid-lab/master/aad-hybrid-lab/DSC/adDSC.zip after 29 attempts: The remote name could not be resolved: 'raw.githubusercontent.com'.More information about the failure can be found in the logs located under 'C:\WindowsAzure\Logs\Plugins\Microsoft.Powershell.DSC\2.80.0.0' on the VM."." 
						} 
					] 
				}
			}"
        }
    ]
}
@bretthackermsft
Copy link
Contributor

Although I realize this has seemingly no relation to the issue, can you please try deploying in US East? Let me know if that resolves the issue.

@frankhu-2021
Copy link
Author

@bretthackermsft thanks for replying, i'll go in and try to do that.

@frankhu-2021
Copy link
Author

@bretthackermsft I'm still getting the same error deploying to US East. It is the same error shown in the first github post.

@feintzy
Copy link

feintzy commented Aug 18, 2020

Hi Frank,

did you find a way to solve this ?
Experiencing the same issue...

@dragagon
Copy link

dragagon commented Oct 14, 2020

A little outdated, but here is what you have to do to fix it. Due to the not-so-recent change in how NuGet Works, you need to update DSC/adDSC/adDSCConfiguration.ps1

Change:

SetScript  = {
				# Install AAD Tools
					mkdir c:\temp -ErrorAction Ignore
					Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

					Install-Module -Name MSOnline -Force

					Install-Module -Name AzureAD -Force

					#Install-Module -Name AzureADPreview -AllowClobber -Force

					#Install-Module -Name AzureRM –AllowClobber -Force

                }

to

				# Install AAD Tools
					mkdir c:\temp -ErrorAction Ignore
					[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
					Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

					Install-Module -Name MSOnline -Force

					Install-Module -Name AzureAD -Force

					#Install-Module -Name AzureADPreview -AllowClobber -Force

					#Install-Module -Name AzureRM –AllowClobber -Force

                }```

@bretthackermsft
Copy link
Contributor

Thanks @dragagon - I haven't tested this in the context of the running DSC but I have encountered this requirement in other similar circumstances. To the extent it doesn't materially affect anything else and it makes sense to me, I went ahead and committed this change. Thanks for the heads up.

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

No branches or pull requests

4 participants