Closed petkolukov closed 5 years ago
Hey - thanks for flagging this - can you login to Azure Stack (with PowerShell) and run this:
$ArmEndpoint = "https://adminmanagement.local.azurestack.external"
Add-AzureRmEnvironment -Name "AzureStackAdmin" -ArmEndpoint "$ArmEndpoint" -ErrorAction Stop
Add-AzureRmAccount -EnvironmentName "AzureStackAdmin" -ErrorAction Stop
$activationName = "default"
$activationRG = "azurestack-activation"
Get-AzsAzureBridgeDownloadedProduct -ActivationName $activationName -ResourceGroupName $activationRG
and let me know the output?
I'm curious if the App Service is looking for 1.9 and not accepting 1.9.1 - this would need the App Service team to fix, but if you could let me know, we can investigate.
Thanks! Matt
Is it supposed to output something? It did output the subscription details PS D:\configasdk> Add-AzureRmEnvironment -Name "AzureStackAdmin" -ArmEndpoint "$ArmEndpoint" -ErrorAction Stop
Name : AzureStackAdmin EnableAdfsAuthentication : False OnPremise : False ActiveDirectoryServiceEndpointResourceId : https://adminmanagement.####.onmicrosoft.com/cad4ff0c-ece 4-####-8f0b-f2948f8d8dcf AdTenant : GalleryUrl : https://adminportal.local.azurestack.external:30015/ ManagementPortalUrl : ServiceManagementUrl : PublishSettingsFileUrl : ResourceManagerUrl : https://adminmanagement.local.azurestack.external SqlDatabaseDnsSuffix : StorageEndpointSuffix : local.azurestack.external ActiveDirectoryAuthority : https://login.microsoftonline.com/ GraphUrl : https://graph.windows.net/ GraphEndpointResourceId : https://graph.windows.net/ TrafficManagerDnsSuffix : AzureKeyVaultDnsSuffix : vault.local.azurestack.external DataLakeEndpointResourceId : AzureDataLakeStoreFileSystemEndpointSuffix : AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : AzureKeyVaultServiceEndpointResourceId : https://vault.local.azurestack.external AzureOperationalInsightsEndpointResourceId : AzureOperationalInsightsEndpoint : VersionProfiles : {} ExtendedProperties : {} BatchEndpointResourceId :
PS D:\configasdk> Add-AzureRmAccount -EnvironmentName "AzureStackAdmin" -ErrorAction Stop
Account : ####@####.onmicrosoft.com SubscriptionName : Default Provider Subscription SubscriptionId : 74724ec8-####-####-####-6b1100f1a9a6 TenantId : 2a7643c4-####-####-####-d665c3016156 Environment : AzureStackAdmin
PS D:\configasdk> $activationName = "default" PS D:\configasdk> $activationRG = "azurestack-activation" PS D:\configasdk> Get-AzsAzureBridgeDownloadedProduct -ActivationName $activationName -ResourceGroupName $activationRG WARNING: Preview version of the module Azs.Azurebridge.Admin loaded. Future release of this module may have breaking changes. ...... other Exports VERBOSE: Performing operation ListWithHttpMessagesAsync on $AzureBridgeAdminClient. VERBOSE: Operation completed successfully. VERBOSE: Flattening paged results.
It will return nothing if there are no marketplace items downloaded.
Ahhh, I see what’s happened here. Even though you included the -azureRegSubId, you’ve not included -registerASDK in your initial call of the script. By choosing not to register your ASDK, the part of the script which optionally downloads VM extensions hasn’t been executed (this is by design as you need to register the ASDK to download extensions from the marketplace).
I didn’t know that AppService has a dependency on the CustomScriptExtension 1.9 and because you don’t have it, that’s the failure you’re seeing.
What you could do is rerun the initial command but include -registerASDK and -useAzureCredsForReg (please check this using tab, as I’m typing on my phone) and that should register your ASDK and add the VM extensions.
If you don’t want to register, I’ll have to figure out a different way for you to get an updated customScriptExtension in your Azure Stack as the inbox one is older than 1.9 and without registration, i don’t know how you’ll be able to add one.
If you’ve already registered the ASDK outside of using my script, simply log into the Admin portal and add the latest version of the CustomScriptExtension manually, then rerun the script.
Hope that helps.
I have registered the ASDK before running your script. I need to figure out now how to add the CustomScriptExtension to the ASDK. After i do that I'll rerun the script and let you know.
Thank you for your help.
No problems, log into Admin Portal -> Marketplace Management -> add from Azure button -> then find the CustomScriptExtension 1.9.x in the list of results and click Download.
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-download-azure-marketplace-item
Hope that helps!
I've added the script extensions and rerun the script. It did complete successfully. Thank you.
Thank you - and now I know that there is an extra dependency for the App Service - I'll be sure to check for that in the next build.
I'm using below command and everything installed with the exception of the Appservice
.\ConfigASDK.ps1 -azureDirectoryTenantName "**.onmicrosoft.com" -authenticationType AzureAD
-downloadPath "D:\ASDKfiles" -ISOPath "D:\temp\windows2016.iso" -azureStackAdminPwd '*****'
-VMpwd 'Passw0rd123!' -azureAdUsername "*.onmicrosoft.com" -azureAdPwd '**' ` -azureRegSubId "######" -skipMySQL -skipCustomizeHostThe error from the log file is:
[0DCC:47A4][2018-12-03T10:46:46]: [Websites]: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: The required custom script extension version not found. Please syndicate the market place with the custom script extension version :1.9
I also looked at Issue #60 and re-started the install as per instructions in the discussion.