Giter Site home page Giter Site logo

azurestack's People

Contributors

alexor-ms avatar mattmcspirit avatar mclgoerg avatar rfsonders avatar rtibi avatar sqltechmike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azurestack's Issues

Server 2016 ISO requirement

The instructions for running the configurator states a Server 2016 ISO is required. Does this have to be evaluation media or can a Visual Studio non-eval version ISO be used?

New install stops. "No match was found for the specified search criteria and module names 'AzureRM.AzureStack Admin'..Exception.Message"

After a fresh install i recieve the following error:
VERBOSE: [11:31 AM]::[INSTALLPOWERSHELL]:: No match was found for the specified search criteria and module names 'AzureRM.AzureStack
Admin'..Exception.Message

PS C:\ConfigASDK> Uninstall-Module AzureRM.AzureStackAdmin -Force
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names
'AzureRM.AzureStackAdmin'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2157 char:21

I changed the lines to:

    Write-CustomVerbose -Message "Uninstalling previously existing Azure Stack modules"
    Uninstall-Module AzureRM.AzureStackAdmin -Force -ErrorAction SilentlyContinue
    Uninstall-Module AzureRM.AzureStackStorage -Force -ErrorAction SilentlyContinue
    Uninstall-Module -Name AzureStack -Force -ErrorAction SilentlyContinue

And now it will work.

Images Jobs failing

Various jobs are failing.

****** Please wait until all jobs have completed/failed before re-running the main script ******
At least one of the jobs failed.
FAILED JOB: Job Name: AddUbuntuImage | Error Message: The resource type 'checkNameAvailability' could not be found in the namespace 'Microsoft.Storage' for api version '2017-10-01'. The suppo
rted api-versions are '2016-01-01,2015-06-15,2015-05-01-preview'.
FAILED JOB: Job Name: AddServerCoreImage | Error Message: The resource type 'checkNameAvailability' could not be found in the namespace 'Microsoft.Storage' for api version '2017-10-01'. The s
upported api-versions are '2016-01-01,2015-06-15,2015-05-01-preview'.
FAILED JOB: Job Name: AddServerFullImage | Error Message: The resource type 'checkNameAvailability' could not be found in the namespace 'Microsoft.Storage' for api version '2017-10-01'. The s
upported api-versions are '2016-01-01,2015-06-15,2015-05-01-preview'.
FAILED JOB: Job Name: AddMySQLAzpkg | Error Message: The resource type 'checkNameAvailability' could not be found in the namespace 'Microsoft.Storage' for api version '2017-10-01'. The suppor
ted api-versions are '2016-01-01,2015-06-15,2015-05-01-preview'.
FAILED JOB: Job Name: AddSQLServerAzpkg | Error Message: The resource type 'checkNameAvailability' could not be found in the namespace 'Microsoft.Storage' for api version '2017-10-01'. The su
pported api-versions are '2016-01-01,2015-06-15,2015-05-01-preview'.
FAILED JOB: Job Name: AddSQLServerRP | Error Message: The ServerCoreImage stage of the process has failed. This should fully complete before the Windows Server full image is created. Check th
e UbuntuServerImage log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: AddSQLServerSku | Error Message: The SQLServerRP stage of the process has failed. This should fully complete before the SKU and Quota are created. Check the SQLServerRP
log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: DeploySQLServerHost | Error Message: The UbuntuServerImage stage of the process has failed. This should fully complete before the database VMs can be deployed. Check the
UbuntuServerImage log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: AddSQLHosting | Error Message: The SQLServerSKUQuota stage of the process has failed. This should fully complete before the SQLServer database host has been deployed. Ch
eck the SQLServerSKUQuota log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: DeployAppServiceFS | Error Message: The ServerFullImage stage of the process has failed. This should fully complete before the File Server can be deployed. Check the Ser
verFullImage log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: DeployAppServiceDB | Error Message: The UbuntuServerImage stage of the process has failed. This should fully complete before the database VMs can be deployed. Check the
UbuntuServerImage log, ensure that step is completed first, and rerun.
FAILED JOB: Job Name: DeployAppService | Error Message: The AppServiceFileServer stage of the process has failed. This should fully complete before the App Service deployment can be started.
Check the AppServiceFileServer log, ensure that step is completed first, and rerun.
Please review the logs for further troubleshooting

Unable to complete install using script

I have a new install of ASDK that passes all the tests. It was already registered, and I'm using the commands from "Step 3" usage scenario #3. Everything works until it is "Testing Azure Stack login with Azure Active Directory". At that point, it tells me it is logging into the Default Provider Subscription using my azure admin account. It then returns the following error:

[4:53 PM]::[TEST LOGINS]:: The provided account [email protected] does not have access to subscription name "Default Provider Subscription". Please try log
ging in with different credentials or a different subscription name..Exception.Message

I do not currently have a subscription with that name. My subscription name is "MSDN Subscription".

I have verified that the account logging in does have "Owner" permissions to the subscription and is a global administrator for the tenant. Is there something else that I am missing for this to work?

Error during job Add Plans and offers.

Hi
Logs.zip
When I am running post config script, It is not working from last 2 day (from 17 Dec 2018 Morning). When I am re-running the script found same issue every time. It could be due to there is some interface updates in Azure Stack Admin portal. Can you please look into the issue.
Attaching logs zip folder:
Logs.zip

ASDK Configurator Stage: CreatePlansOffers failed. Updating ConfigASDK Progress database
GetScripts : Complete
CheckPowerShell : Complete
InstallPowerShell : Complete
DownloadTools : Complete
HostConfiguration : Complete
Registration : Complete
UbuntuServerImage : Complete
WindowsUpdates : Complete
ServerCoreImage : Complete
ServerFullImage : Complete
MySQLGalleryItem : Complete
SQLServerGalleryItem : Complete
AddVMExtensions : Complete
MySQLRP : Skipped
SQLServerRP : Complete
MySQLSKUQuota : Skipped
SQLServerSKUQuota : Complete
UploadScripts : Skipped
MySQLDBVM : Skipped
SQLServerDBVM : Complete
MySQLAddHosting : Skipped
SQLServerAddHosting : Complete
AppServiceFileServer : Complete
AppServiceSQLServer : Complete
DownloadAppService : Complete
AddAppServicePreReqs : Complete
DeployAppService : Complete
RegisterNewRPs : Complete
CreatePlansOffers : Failed
InstallHostApps : Incomplete
CreateOutput : Incomplete

Appservice deployment fails

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 -skipCustomizeHost

The error from the log file is:
[0DCC:7C30][2018-12-03T10:46:46]: [Websites]: allowedExtensionVersions:1.9
[0DCC:7C30][2018-12-03T10:46:46]: [Websites]: GetCustomScriptExtensions:1.9
[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.

DeployAppService : Failed

[5624:563C][2019-03-01T16:24:10]i000: [Websites]: Token Expires On: 2019-03-01 17:24:03Z
[5624:563C][2019-03-01T16:24:10]i000: [Websites]: GET: https://adminmanagement.local.azurestack.external/subscriptions/******/providers/Microsoft.Web.Admin/locations/local?api-version=2016-08-01
[5624:628C][2019-03-01T16:24:10]e000: [Websites]: System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: v1
at System.Version.op_LessThanOrEqual(Version v1, Version v2)
at System.Version.op_GreaterThanOrEqual(Version v1, Version v2)
at Microsoft.Web.Hosting.SingleInstaller.Views.AzureStackInstallInfoStepViewModel.d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.d__26.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Microsoft.Web.Hosting.SingleInstaller.WixBA.ProcessCommandLine()
at Microsoft.Web.Hosting.SingleInstaller.WixBA.Run()
---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.
Parameter name: v1
at System.Version.op_LessThanOrEqual(Version v1, Version v2)
at System.Version.op_GreaterThanOrEqual(Version v1, Version v2)
at Microsoft.Web.Hosting.SingleInstaller.Views.AzureStackInstallInfoStepViewModel.d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.d__26.MoveNext()<---

[5624:3810][2019-03-01T16:24:10]i500: Shutting down, exit code: 0xffffffff
[5624:3810][2019-03-01T16:24:10]i410: Variable: LocalAppDataFolder = C:\Users\AzureStackAdmin\AppData\Local
[5624:3810][2019-03-01T16:24:10]i410: Variable: NETFRAMEWORK45 = 394802
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleAction = 5
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleElevated = 1
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleLog = D:\ASDKfiles\ASDK\appservice\AppServiceLog0301-162359.txt
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleManufacturer = Microsoft Corporation
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleName = Microsoft Azure App Service
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleOriginalSource = D:\ASDKfiles\ASDK\appservice\appservice.exe
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleOriginalSourceFolder = D:\ASDKfiles\ASDK\appservice
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleProviderKey = {e7403885-1692-4660-8b47-70a8a4bbcb99}
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleSourceProcessFolder = D:\ASDKfiles\ASDK\appservice
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleSourceProcessPath = D:\ASDKfiles\ASDK\appservice\appservice.exe
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleTag =
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleUILevel = 2
[5624:3810][2019-03-01T16:24:10]i410: Variable: WixBundleVersion = 80.0.15.0
[5624:3810][2019-03-01T16:24:10]i007: Exit code: 0xffffffff, restarting: No

When doing the installation using the setup file:

[4BA4:41B4][2019-03-04T05:50:51]i000: [Websites]: Token Expires On: 2019-03-04 06:47:11Z
[4BA4:41B4][2019-03-04T05:50:51]i000: [Websites]: GET: https://adminmanagement.local.azurestack.external/subscriptions/ebac894f-95b3-47f4-a585-84211aaac3f0/providers/Microsoft.Compute/locations/local/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus?api-version=2016-03-30
[4BA4:14A0][2019-03-04T05:51:22]i000: [Websites]: {
"Scenario": 2,
"AzureResourceManagerDnsSuffix": "adminmanagement.local.azurestack.external",
"TenantAzureResourceManagerDnsSuffix": "management.local.azurestack.external",
"AzureDirectoryTenantName": ".onmicrosoft.com",
"DomainSuffix": "azurestack.external",
"LoginEndpoint": "https://login.microsoftonline.com/",
"GraphEndpoint": "https://graph.windows.net/",
"AppResourceId": "https://adminmanagement.mas2moordrechttest.onmicrosoft.com/
",
"IsMultiTenant": true,
"AppServiceWebAppsDnsSuffix": "appservice.local.azurestack.external",
"AppServiceApiDnsSuffix": "api.appservice.local.azurestack.external",
},

MFA

About to start the script, I have MFA on my AAD account that I used. Is the user password parameters required in Example 2?

Feature request: Support for "custom domain" on the install

Describe the issue
We have quite a few ASDK installs, and have configured the installations so that we have different external FQDNs on the installs.
The ASDK configurator didn't really like that. :)
So the feature request is to get support for using an alternative External DomainFQDN.

So this is how I made it work
Ok. First; this is my quick and dirty fix to just get it to work... :)
It should be a loop and stuff, but its just a test. Also "borrrowed" some of the functions from the ConfigASDK.ps1 just to try it out...

MockupUpdateSetupFiles.ps1.txt

How it might be done
I havn't made any changes in the ASDK configurator install. But a suggestion would be to add a optional parameter (eg: "-ExternalDomainFQDN") and if this is specified when running ASDK configurator then it would use this new ExternalDomainFQDN instead of "azurestack.local" :)

Request for export of used variables.

Is it possible to write out an export of all variables that are used during the deployment. I'm now writing a script to clean up the installation for redeploy of the ASDK. Now i have to extract the information from the log file and it could be handy if there is a (hash)file I can import for that information.

ERROR : The process cannot access the file 'C:\Users\AZURES~1\AppData\Local\Temp\Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO' because it is being used by another process.

Hey Matt,

It looks like there is a timing issue with the upload of windows images.

I got the following error:

ERROR : The process cannot access the file 'C:\Users\AZURES~1\AppData\Local\Temp\Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO' because it is being used by another process.

PS>TerminatingError(Get-ChildItem): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'C:\ClusterStorage\Volume1\Images\ServerCore\ServerCore.vhd' because it does not exist."

Could it be that there is no dependence check on the script, because other parts of the scrip will fail because the image could not be found.

After a rerun it works correct.

MySQLVM Deployment fails

Describe the issue
MySQLVM deployment fails at stage customscriptextensions:
Deployment failed.
5:02:42 PM - Resource Microsoft.Compute/virtualMachines/extensions 'mysqlhost/CustomScriptExtension' failed with message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "Failed to provision VM extensions for VM 'mysqlhost'"
}
]
}
}'.Exception.Message

Error might be in the install_MySQL8.sh.
In line #34 (apt-get upgrade -y) there seems to be the "sudo" is missing.
Even after changing that line to "sudo apt-get upgrade -y" the script throws an error when running it manually. The error is related to the "waagent" - recommended action is to run "dpkg --configure -a" manually. After running that command, the install_MySQL8.sh script runs fine...

MSSQL deployment fails

I'm experiencing issues with the deployment script when deploying MSSQL.

There are two different errors/bugs.
The first time the deployment script runs the error below is shown, this happens during the MSSQL step: SQLServerRP. The error is:

The command "trace-step" is not recognized.

Executing the deployment script again gives a different error:

File Export-InstalledProducts.ps1 can not be found.

After investigating the second error, it appears that this file (Export-InstalledProducts.ps1) is downloaded as part of the SQL.zip file.
The SQL.zip file is extracted, however the extracted content is being deleted automatically shortly after extracting the content. Hence why the Export-InstalledProducts.ps1 file is missing.

Environment details:
Used ASDK build 1.1808.0.97
Used parameters are: -skipMySQL and -skipCustomizeHost
Mode used: ADFS

DeployAppService job is failing

Describe the issue
Hi Matt, DeployAppService job is failing. I tried to re-run the script but every time getting the same error.
I have attached logs file. Can you please look into this issue. I have sent logs file to asdkconfigurator @ outlook .com

No Active Directory endpoint specified for environment 'AzureStackAdmin'

Hi,

im having issue on the latest asdk version on test azure stack login.
i had tried uninstalled all powershell version, and use this script to install the working version.

any idea what is the issue for below?

VERBOSE: [2:27 AM]::[CONNECTING]:: Logging into the Default Provider Subscription with your Azure Stack Administrator Account used with Azure Active Directory
Login-AzureRmAccount : No Active Directory endpoint specified for environment 'AzureStackAdmin'
Parameter name: environment
At C:\ConfigASDK\ConfigASDK.ps1:1277 char:5

  • Login-AzureRmAccount -EnvironmentName "AzureStackAdmin" -TenantId ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : CloseError: (:) [Add-AzureRmAccount], ArgumentOutOfRangeException
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.AddAzureRMAccountCommand

Azure Stack 1809 / PS 1.5.0 / 2018-03-01-hybrid

Even that you write your script will not work with it, I changed to PS Modules 1.5.0 and Profile 2018-03-01-hybrid by changing the lines:
950 Use-AzureRmProfile -Profile 2018-03-01-hybrid -Force -ErrorAction Stop
951 Install-Module -Name AzureStack -RequiredVersion 1.5.0 -Force -ErrorAction Stop

Ubuntu Image download failed - reason being that the registration could not be found, even if it was successfully registered. To fix that I changed line 1331:
1331 $Registration = ((Get-AzureRmResource | Where-Object { (($.ResourceType -eq "Microsoft.AzureStack/registrations") -and ($.Name -like "asdkreg-$asdkHostName*")) }) | Select-Object -First 1 -ErrorAction SilentlyContinue -Verbose).Name

Replace
$asdkStorageAccount.PrimaryEndpoints.Blob.AbsoluteUri
with
$asdkStorageAccount.PrimaryEndpoints.Blob
Should replace at three occurences:
For Ubuntu Image:
$ubuntuServerURI = '{0}{1}/{2}' -f $asdkStorageAccount.PrimaryEndpoints.Blob.AbsoluteUri, $asdkImagesContainerName, $UbuntuServerVHD.Name
For Server Core Image:
$serverCoreURI = '{0}{1}/{2}' -f $asdkStorageAccount.PrimaryEndpoints.Blob.AbsoluteUri, $asdkImagesContainerName, $serverCoreVHD.Name
For Server Full Image:
$serverFullURI = '{0}{1}/{2}' -f $asdkStorageAccount.PrimaryEndpoints.Blob.AbsoluteUri, $asdkImagesContainerName, $serverFullVHD.Name

Issue processing Windows Server 2016 full & core images

I'm experiencing an issue with the creation of the Windows Server 2016 full & core images. I'm using the same Windows Server 2016 RTM refresh ISO as usual, but to be safe I've re-downloaded it from the Microsoft website.

From the log files, it seems that there is an incorrect parameter being parsed by the AzS POC config script.
See the output below. I'll email the log files, when I'm back at work tomorrow.

INFO : Closing Windows image...
INFO : Closing ISO...
INFO : Done.

ServerFull.2016.40.20190930.vhd has been successfully created with Servicing Stack Updates.
Mounting ServerFull.2016.40.20190930.vhd to inject cumulative updates
Creating a mount directory
Mounting the VHD
PS>TerminatingError(Mount-WindowsImage): "The parameter is incorrect.
"
Image creation wasn't successful. Cleaning up, then waiting 10 seconds before retrying.
The parameter is incorrect.
.Exception.Message

Azure Stack POC Configurator Stage: ServerFull2016Image failed. Updating AzSPoC Progress database
Creating a Windows Server (ServerFull.2016.40.20190930.vhd) image failed after 3 attempts. Check the logs then retry. Exiting process..Exception.Message

1906 Offline ZIP file packaging

Hi Matt,

Describe the issue
I am not sure if the mistake might be on my side. I have downloaded the 1906 offline installation files three times and each time it failed shortly after the "Packaging files into a single ZIP file" step. The download of all other files was without problems, so I think that a connectivity problem can be excluded.

Send the logs

VERBOSE: Performing the operation "Unblock-File" on target "D:\Install\ASDK_Install\ASDKPostDeployment1906\ConfigASDKfiles\ASDK\SqlLocalDB\SqlLocalDB.msi".
VERBOSE: Performing the operation "Unblock-File" on target "D:\Install\ASDK_Install\ASDKPostDeployment1906\ConfigASDKfiles\ASDK\templates\FileServerTemplate.json".
VERBOSE: Performing the operation "Unblock-File" on target "D:\Install\ASDK_Install\ASDKPostDeployment1906\ConfigASDKfiles\ASDK\templates\mySqlHostingTemplate.json".
VERBOSE: Performing the operation "Unblock-File" on target "D:\Install\ASDK_Install\ASDKPostDeployment1906\ConfigASDKfiles\ASDK\templates\sqlHostingTemplate.json".
VERBOSE: [09:56]::[CREATE ZIP]:: Packaging files into a single ZIP file
VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_LogicalDisk WHERE DeviceId='D:','queryDialect' = WQL,'namespaceName' = root\cimv2'.
VERBOSE: Operation 'Query CimInstances' complete.
VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_LogicalDisk WHERE DeviceId='D:','queryDialect' = WQL,'namespaceName' = root\cimv2'.
VERBOSE: Operation 'Query CimInstances' complete.
VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '2' more times.
VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '1' more times.
VERBOSE: Cannot download link 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409', retrying for '0' more times.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: An error occurred while sending the request.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2' for '2' more times
VERBOSE: An error occurred while sending the request.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2' for '1' more times
VERBOSE: An error occurred while sending the request.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2' for '0' more times
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Total package yield:'0' for the specified package '7Zip4PowerShell'.
VERBOSE: [09:56]::[CREATE ZIP]:: No match was found for the specified search criteria and module name '7Zip4PowerShell'. Try Get-PSRepository to see all available registered module repositories..Exception.Message
Handles NPM(K) PM(K) WS(K) CPU(s)   Id SI ProcessName
------- ------ ----- ----- ------   -- -- -----------
     28      3   544  1556   0,05 7140  4 appservice 


VERBOSE: [09:56]::[CREATE ZIP]:: No match was found for the specified search criteria and module name '7Zip4PowerShell'. Try Get-PSRepository to see all available registered module repositories..Exception.Message
Handles NPM(K) PM(K) WS(K) CPU(s)   Id SI ProcessName
------- ------ ----- ----- ------   -- -- -----------
     28      3   544  1556   0,05 7140  4 appservice 



PS D:\Install\> Get-PSRepository

Name                      InstallationPolicy   SourceLocation                                                                                                                                                                                                    
----                      ------------------   --------------                                                                                                                                                                                                    
PSGallery                 Trusted              https://www.powershellgallery.com/api/v2  

Thank you in advance,
Marcel

Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified..Exception.Message

Describe the issue
Scenario 3:
.\AzSPoC.ps1 -azureDirectoryTenantName "contoso.onmicrosoft.com" -authenticationType AzureAD -downloadPath "D:\ASDKfiles" -ISOPath "D:\WS2016EVALISO.iso" -asdkHostPwd 'Passw0rd123!'
-VMpwd 'Passw0rd123!' -azureAdUsername "[email protected]" -azureAdPwd 'Passw0rd123!'

Error:
Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified..Exception.Message

Directory: C:\AzSPoC

Mode LastWriteTime Length Name


-a---- 10/18/2019 5:35 AM 0 AzSPoCRunFlag.txt
Name: MSSQLLocalDB

Version: 14.0.1000.169

Shared name:

Owner: AZURESTACK\AzureStackAdmin

Auto-create: Yes

State: Running

Last start time: 10/18/2019 5:38:21 AM

Instance pipe name: np:\.\pipe\LOCALDB#4465EA27\tsql\query

Hardware
Please provide details about your hardware environment, such as HDDs/SSDs, # of CPUs, RAM and whether this is physical, or a nested VM in Azure etc.

HDD
CPU: Intel Xeon CPU E5-2670 v3 @2.30 GHz (2 Socket)
RAM: 256GB
Physical Server: Dell PowerEdge R630
ASDK: 1908

Send the logs
Sent

Additional context
Add any other context about the problem here.

Script stuck at setting up MySQLDBVM

_VERBOSE: 8:20:00 PM - Resource Microsoft.Compute/virtualMachines 'mysqlhost' provisioning status is succeeded
VERBOSE: 8:20:00 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:05 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:11 PM - Resource Microsoft.Compute/virtualMachines/extensions 'mysqlhost/CustomScriptExtension'
provisioning status is running
VERBOSE: 8:20:11 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:17 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:23 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:28 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:34 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:40 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:45 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:51 PM - Checking deployment status in 5 seconds
VERBOSE: 8:20:57 PM - Checking deployment status in 5 seconds
VERBOSE: [8:21 PM]::[MYSQLDBVM]:: ASDK Configuration Stage: MySQLDBVM Failed

Stage Status


ExtractZip Skipped
InstallPowerShell Complete
DownloadTools Complete
HostConfiguration Complete
Registration Skipped
UbuntuImage Complete
WindowsImage Complete
MySQLGalleryItem Complete
SQLServerGalleryItem Complete
VMExtensions Skipped
MySQLRP Complete
SQLServerRP Complete
MySQLSKUQuota Complete
SQLServerSKUQuota Complete
UploadScripts Skipped
MySQLDBVM Failed
SQLServerDBVM Incomplete
MySQLAddHosting Incomplete
SQLServerAddHosting Incomplete
AppServiceFileServer Incomplete
AppServiceSQLServer Incomplete
DownloadAppService Incomplete
GenerateAppServiceCerts Incomplete
CreateServicePrincipal Incomplete
GrantAzureADAppPermissions Incomplete
InstallAppService Incomplete
RegisterNewRPs Incomplete
CreatePlansOffers Incomplete
InstallHostApps Incomplete
CreateOutput Incomplete

VERBOSE: [8:21 PM]::[MYSQLDBVM]:: 8:21:03 PM - Resource Microsoft.Compute/virtualMachines/extensions
'mysqlhost/CustomScriptExtension' failed with 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 'CustomScriptExtension'. Error message:
Malformed status file [ExtensionError] Invalid status/status: failed"
}
]
}
}'.Exception.Message_

The script stops here and won't progress any further. Unsure of where to start troubleshooting the issue...

fileserver fails to deploy

image

AppServiceFileServer Failed
AppServiceSQLServer Incomplete
DownloadAppService Incomplete
GenerateAppServiceCerts Incomplete
CreateServicePrincipal Incomplete
GrantAzureADAppPermissions Incomplete
InstallAppService Incomplete
InstallHostApps Incomplete
CreateOutput Incomplete
VERBOSE: 3:03:52 PM - Resource Microsoft.Compute/virtualMachines 'fileserver' failed with message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VmProvisioningTimeout",
"message": "VM 'fileserver' failed to provision with timeout."
}
]
}
}'

It seems to be some error, I have tried to remove the failed fileserver and rerun the script but same error again...

How much RAM?

How much RAM is required to run the script successfully? It would be cool to have it kind of broken down for full and then how much each of the RP deployments requires to run. I've got a few ASDK boxes, but some are much less RAM heavy than others!

Support for a scenario behind a proxy

Unfortunately ConfigASDK.ps1 script expects a direct internet Access (uses test-netconnection).
I'm getting followinf error: "One or more internet connectivity tests failed"

It would be great if you support a proxy scenario with proxy authentication (username, Password) because all our Internet traffic goes via an Internet proxy.

CustomDomainSuffix only in multinode?

Describe the issue
I get the message "You've specified the -customDomainSuffix parameter but not the -multiNode switch. Please rerun the script and provide the -multiNode switch, or remove the -customDomainSuffix if this is an ASDK."
We have been using custom domains since like for ever.. But i don't have a multinode ASDK. :(

Hardware
Physical servers, HP an Dell. 2x Intel E5-2660, 256GB RAM, 4x1TB SSD + 10x6TB HDD

Send the logs
Do you need the logs for this?

Additional context
I don't have any more context, just don't understand this change.

AppServicePreDeploymentSettings.json has Typo

Hi Matt,

great work. I found a typo in the AppServicePreDeploymentSettings.json file. The Parameter:

"ResouceProviderPfxCertPath" -> "ResourceProviderPfxCertPath"
"ResouceProviderPfxCertPassword" -> "ResourceProviderPfxCertPassword"

thanks for the great work

Carsten Rachfahl

Didn't find the Scripts folder located with your AzSPoC.ps1 file

Describe the issue
VERBOSE: Importing cmdlet 'Set-AzureRmResource'.
VERBOSE: Importing cmdlet 'New-AzureRmResource'.
VERBOSE: Importing cmdlet 'Set-AzureRmResourceLock'.
VERBOSE: Importing cmdlet 'Get-AzureRmResource'.
[12:11 AM]::[CONNECTING]:: Didn't find the Scripts folder located with your AzSPoC.ps1 file. If this is a rerun, ensure your AzSPoC.ps1 file is located in the same location as the first run, for example, if your AzSPoC.ps1 file is located at
C:\AzSPoC\AzSPoC.ps1, you should find the Scripts folder located at C:\AzSPoC\Scripts. Moving your AzSPoC.ps1 file to another folder for a rerun will likely cause the script to fail, unless you also move your Scripts folder..Exception.Message

Mode : Process
ContextDirectory :
ContextFile :
CacheDirectory :
CacheFile :
Settings : {}

GetScripts : Complete
CheckPowerShell : Complete
InstallPowerShell : Complete
DownloadTools : Complete
CheckCerts : Skipped
HostConfiguration : Complete
Registration : Skipped
AdminPlanOffer : Complete
UbuntuServerImage : Incomplete
WindowsUpdates : Incomplete
ServerCore2016Image : Incomplete
ServerFull2016Image : Incomplete
ServerCore2019Image : Incomplete
ServerFull2019Image : Incomplete

Hardware
[ 00:24:23 ] Checking for physical/virtual machine status...
[ 00:24:23 ] -- This is a physical machine.
[ 00:24:23 ] Checking system disk capacity...
[ 00:24:23 ] -- Check system disk passed successfully.
[ 00:24:23 ] Checking physical disks...
[ 00:24:23 ] -- Listing of all physical disks on this server:
[ 00:24:24 ] -- Check physical disks passed successfully. Note that ASDK handles situations where there is a pre-existing storage pool, and will delete/recreate it.
[ 00:24:24 ] Checking Memory...
[ 00:24:24 ] -- Memory on this server = 256
[ 00:24:24 ] -- System memory check passed successfully. ASDK requires a minimum of 96 GB of RAM, with 128 GB recommended.
[ 00:24:24 ] Checking processor information...
[ 00:24:26 ] -- Number of CPU sockets = 2
[ 00:24:26 ] -- Number of physical cores = 16

[ 00:24:26 ] -- CPU socket count (2) and core count (12) meet the minimum requirements for ASDK.

Send the logs
Emailed

Registration:Failed

VERBOSE: [5:30 AM]::[HOSTCONFIGURATION]:: Host configuration is now complete.
VERBOSE: [5:30 AM]::[REGISTRATION]:: Starting Azure Stack registration to Azure

ProviderNamespace : Microsoft.AzureStack
RegistrationState : Registered
ResourceTypes : {operations, registrations, registrations/products, registrations/customerSubscriptions}
Locations : {Global, West Central US}
ZoneMappings :

VERBOSE: Loading module from path 'C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions.
VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\5.5.2\AzureRM.Profile.psm1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions.
VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1.\Microsoft.Azure.Commands.Profil
e.dll'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1\AzureRM.Profile.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\AzureRM.Profile.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authentication.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authentication.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\3.4.1\Microsoft.Azure.Commands.Comm
on.Authentication.ResourceManager.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\3.4.1\Microsoft.Azure.Commands.Comm
on.Authentication.ResourceManager.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authorization.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Authorization.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Compute.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Compute.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Graph.RBAC.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Graph.RBAC.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Network.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Network.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Reso
urceManager.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Reso
urceManager.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Comman
ds.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Comman
ds.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Comman
ds.Common.Storage.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Comman
ds.Common.Storage.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Storage.Management.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Storage.Management.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.KeyVault.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.KeyVault.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.WebSites.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.WebSites.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Hyak.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Hyak.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.ApplicationInsights
.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.ApplicationInsights
.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Common.NetFra
mework.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Common.NetFra
mework.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.KeyVault.Core
.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.KeyVault.Core
.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.IdentityModel.Clien
ts.ActiveDirectory.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.IdentityModel.Clien
ts.ActiveDirectory.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.IdentityModel.Clien
ts.ActiveDirectory.WindowsForms.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.IdentityModel.Clien
ts.ActiveDirectory.WindowsForms.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
Azure.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Rest.ClientRuntime.
Azure.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.dll
'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.dll
'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.Ext
ensions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.Ext
ensions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.Ext
ensions.Desktop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Threading.Tasks.Ext
ensions.Desktop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Manage
ment.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.WindowsAzure.Manage
ment.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Newtonsoft.Json.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Newtonsoft.Json.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Newtonsoft.Json.10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Newtonsoft.Json.10.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\System.Net.Http.Extensions.dl
l'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\System.Net.Http.Extensions.dl
l'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\System.Net.Http.Primitives.dl
l'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\System.Net.Http.Primitives.dl
l'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Aks.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Commands.Comm
on.Aks.dll'.
VERBOSE: Loading 'TypesToProcess' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Command
s.Profile.types.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\5.5.2\Microsoft.Azure.Comma
nds.Profile.format.ps1xml'.
VERBOSE: [5:30 AM]::[REGISTRATION]:: ASDK Configuration Stage: Registration Failed

Stage Status


ExtractZip Skipped
InstallPowerShell Complete
DownloadTools Complete
HostConfiguration Complete
Registration Failed
UbuntuImage Incomplete
WindowsImage Incomplete
MySQLGalleryItem Incomplete
SQLServerGalleryItem Incomplete
VMExtensions Incomplete
MySQLRP Incomplete
SQLServerRP Incomplete
MySQLSKUQuota Incomplete
SQLServerSKUQuota Incomplete
UploadScripts Incomplete
MySQLDBVM Incomplete
SQLServerDBVM Incomplete
MySQLAddHosting Incomplete
SQLServerAddHosting Incomplete
AppServiceFileServer Incomplete
AppServiceSQLServer Incomplete
DownloadAppService Incomplete
GenerateAppServiceCerts Incomplete
CreateServicePrincipal Incomplete
GrantAzureADAppPermissions Incomplete
InstallAppService Incomplete
RegisterNewRPs Incomplete
CreatePlansOffers Incomplete
InstallHostApps Incomplete
CreateOutput Incomplete

VERBOSE: [5:30 AM]::[REGISTRATION]:: The following error occurred while loading the extended type data file: Error in TypeData "Micro
soft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occu
rs.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The member SerializationDepth
is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member PropertySerializationSet is al
ready present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member SerializationMethod is already
present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member PropertySerializationSet
is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member SerializationMethod is a
lready present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureContext": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureProfile": The member SerializationDepth is already present.
.Exception.Message

But when i do:
Add-AzureRmAccount -EnvironmentName "AzureCloud"
Get-AzureRmSubscription -SubscriptionID '*******************' | Select-AzureRmSubscription
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.AzureStack

CD C:\AzureStack-Tools-master\Registration

Import-Module .\RegisterWithAzure.psm1

$CloudAdminCred = Get-Credential -UserName "AZURESTACK\CloudAdmin" -Message "Enter the cloud domain credentials to access the privileged endpoint."
$RegistrationName = "ASDK_TEST_21-09"
Set-AzsRegistration -PrivilegedEndpointCredential $CloudAdminCred
-PrivilegedEndpoint "AzS-ERCS01" -BillingModel Development
-RegistrationName $RegistrationName

It works!

Test with 1901 release and get a "Didn't find microsoft.custom-script2-linux-arm-2.0.6 in your gallery. Downloading from the Azure Stack Marketplace"

Describe the issue
Didn't find microsoft.custom-script2-linux-arm-2.0.6 in your gallery. Downloading from the Azure Stack Marketplace
VERBOSE: Performing the operation "Start product download" on target "microsoft.custom-script2-linux-arm-2.0.6".
VERBOSE: Performing operation DownloadWithHttpMessagesAsync on $AzureBridgeAdminClient.
VERBOSE: Waiting for the operation to complete.
VERBOSE: Operation failed.
PS>TerminatingError(Get-Exception): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Code = ProductJobFailed
Message = Long running operation failed with status 'Failed'. Additional Info:'At least one of the job steps failed. Please delete failed resource and retry the operation again. Failed job action(s): WaitGalleryItem'"

TerminatingError(Get-Exception): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Code = ProductJobFailed
Message = Long running operation failed with status 'Failed'. Additional Info:'At least one of the job steps failed. Please delete failed resource and retry the operation again. Failed job action(s): WaitGalleryItem'"
TerminatingError(Get-Exception): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Code = ProductJobFailed
Message = Long running operation failed with status 'Failed'. Additional Info:'At least one of the job steps failed. Please delete failed resource and retry the operation again. Failed job action(s): WaitGalleryItem'"
TerminatingError(Get-Exception): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Code = ProductJobFailed
Message = Long running operation failed with status 'Failed'. Additional Info:'At least one of the job steps failed. Please delete failed resource and retry the operation again. Failed job action(s): WaitGalleryItem'"
TerminatingError(Get-Exception): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Code = ProductJobFailed
Message = Long running operation failed with status 'Failed'. Additional Info:'At least one of the job steps failed. Please delete failed resource and retry the operation again. Failed job action(s): WaitGalleryItem'"
ASDK Configurator Stage: AddVMExtensions failed. Updating ConfigASDK Progress database

Offline download script doesn't set default variable for $branch (correctly)

The offline download scripts fails, when not specifying the branch. As the default variable for $branch is empty.

Steps to reproduce
\ConfigASDKdependencies.ps1 -downloadPath "C:\ASDKdependencies" -ISOPath "C:\WS2016EVAL.iso"

The workaround is to specify the branch manually: .\ConfigASDKdependencies.ps1 -downloadPath "C:\ASDKdependencies" -ISOPath "C:\WS2016EVAL.iso" -branch master

As we can see in the error there is a double // instead of /master/.

`VERBOSE: [15:28]::[VALIDATION]:: Validating if running under Admin Privileges
VERBOSE: GET https://raw.githubusercontent.com/mattmcspirit/azurestack//README.md with 0-byte payload
Accessing https://raw.githubusercontent.com/mattmcspirit/azurestack//README.md - Status Code is 404 - URL is invalid
If you're not sure, don't specify a branch, and 'master' will be used. Error details:

Invalid Github branch specified. You tried to access
https://raw.githubusercontent.com/mattmcspirit/azurestack//README.md, which doesn't exist. Status Code: 404 - exiting
process
At C:\ConfigASDKfiles\ConfigASDKdependencies.ps1:131 char:5

  • throw "Invalid Github branch specified. You tried to access $urlT ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Invalid Github ...exiting process:String) [], RuntimeException
    • FullyQualifiedErrorId : Invalid Github branch specified. You tried to access https://raw.githubusercontent.com/m
      attmcspirit/azurestack//README.md, which doesn't exist. Status Code: 404 - exiting process`

Error while running the script

I get the below error, any help is much appreciated.

C:\ConfigASDK\ConfigASDK.ps1 : The term '.\Scripts\GetJobStatus.ps1' is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1

  • .\ConfigASDK.ps1 -azureDirectoryTenantName "rathishr85hotmail.onmicro ...
  •   + CategoryInfo          : ObjectNotFound: (.\Scripts\GetJobStatus.ps1:Stri 
     ng) [ConfigASDK.ps1], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException,ConfigASDK.ps1
    

Typo at line 1692

$packageArray = "Microsoft.WindowsServer2016Datacenter-ARM", "Microsoft.WindowsServer2016DatacenterCore-ARM"

Corrected version is as below:
$packageArray = "Microsoft.WindowsServer2016Datacenter-ARM", "Microsoft.WindowsServer2016DatacenterServerCore-ARM"

Appservice failed to deploy : Shared worker tier timed out

"code": "ProvisioningState/failed/VmProvisioningTimeout",
"level": "Error",
"displayStatus": "Provisioning failed",
"message": "VM 'SharedWorkerTierScaleSet_0' failed to provision with timeout.",
"time": "2018-12-21T13:32:57.9619623+00:00"
}

Error at Ubuntu Image Stage - 1805.2 Version

I am playing with this new version for 1805. I ran into an issue on the ubuntu image stage:

TerminatingError(Invoke-RestMethod): "{"error":{"code":"ParentResourceNotFound","message":"Can not perform requested operation on nested resource. Parent resource 'AzureStack-VNET' not found."}}"
VERBOSE: [6:51 PM]::[UBUNTUIMAGE]:: ASDK Configuration Stage: UbuntuImage Failed

I will dig into this more but wanted to post this just in case it was an easy fix.

Appservice deployment failed on 1811

[512C:3570][2019-01-04T21:56:13]: [Websites]: TryLogAppServiceResourceStatus Ends
[512C:386C][2019-01-04T21:56:13]: [Websites]: System.AggregateException: One or more errors occurred. ---> System.Exception: Deployment Failed. Refer deployment logs for more details
at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.d__a.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Microsoft.Web.Hosting.SingleInstaller.WixBA.ProcessCommandLine()
at Microsoft.Web.Hosting.SingleInstaller.WixBA.Run()
---> (Inner Exception #0) System.Exception: Deployment Failed. Refer deployment logs for more details
at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.d__a.MoveNext()<---

[512C:4BA4][2019-01-04T21:56:13]: Shutting down, exit code: 0xffffffff
[512C:4BA4][2019-01-04T21:56:13]: Variable: LocalAppDataFolder = C:\Users\AzureStackAdmin\AppData\Local
[512C:4BA4][2019-01-04T21:56:13]: Variable: NETFRAMEWORK45 = 394802
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleAction = 4
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleElevated = 1
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleLog = D:\ASDKfiles\ASDK\appservice\AppServiceLog0104-163456.txt
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleName = Microsoft Azure App Service
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleOriginalSource = D:\ASDKfiles\ASDK\appservice\appservice.exe
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleProviderKey = {a51eff0b-eb3b-4971-a350-ae1691850bbd}
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleTag =
[512C:4BA4][2019-01-04T21:56:13]: Variable: WixBundleVersion = 78.0.5.0
[512C:4BA4][2019-01-04T21:56:13]: Exit code: 0xffffffff, restarting: No

Error during Step SQLSERVERADDHOSTING

I used ASDK Configurator 1808.1 in Offline Mode:
Scenario 3 - Using Azure AD for authentication. You choose not to register the ASDK to Azure as part of the automated process. You have provided a valid -configAsdkOfflineZipPath

.\ConfigASDK.ps1 -azureDirectoryTenantName "" -authenticationType AzureAD -downloadPath "D:\ASDKfiles" -configAsdkOfflineZipPath "C:\ASDKdependencies\ConfigASDKfiles.zip" -azureStackAdminPwd '****'
-VMpwd '
' -azureAdUsername "" -azureAdPwd '' -skipMySQL

I got an error in step SQLSERVERADDHOSTING (see below). Any ideas ?

Stage Status


ExtractZip Complete
InstallPowerShell Complete
DownloadTools Complete
HostConfiguration Complete
Registration Skipped
UbuntuImage Complete
WindowsImage Complete
MySQLGalleryItem Complete
SQLServerGalleryItem Complete
VMExtensions Skipped
MySQLRP Complete
SQLServerRP Complete
MySQLSKUQuota Complete
SQLServerSKUQuota Complete
UploadScripts Complete
MySQLDBVM Complete
SQLServerDBVM Complete
MySQLAddHosting Skipped
SQLServerAddHosting Failed
AppServiceFileServer Incomplete
AppServiceSQLServer Incomplete
DownloadAppService Incomplete
GenerateAppServiceCerts Incomplete
CreateServicePrincipal Incomplete
GrantAzureADAppPermissions Incomplete
InstallAppService Incomplete
RegisterNewRPs Incomplete
CreatePlansOffers Incomplete
InstallHostApps Incomplete
CreateOutput Incomplete

VERBOSE: [11:08 AM]::[SQLSERVERADDHOSTING]:: 11:08:18 AM - Resource Microsoft.SQLAdapter.Admin/hostingServers 'sqlhost.local.cloudapp.azurestack.external' failed with message '{
"error": {
"code": "-2146232060",
"message": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The remote computer refused the network connection.)"
}
}'.Exception.Message

Several jobs fail when using the offline download method

I've successfully used the offline download script on 7 November.
However I'm experiencing several failed steps when executing the ConfigASDK.ps1 script.

I've started the script with:

.\ConfigASDK.ps1 -azureDirectoryTenantName "XXXX" -authenticationType AzureAD `
-downloadPath "D:\ASDKpostdeploytemp" -"D:\ASDKdependencies_offlinedownload\ConfigASDKfiles.zip" -azureStackAdminPwd "XXXX" `
-VMpwd "XXXX" -azureAdUsername "XXXX" -azureAdPwd "XXXX" `
-registerASDK -useAzureCredsForRegistration -azureRegSubId "XXXX" -skipMySQL -skipCustomizeHost

The tasks which fail:

`Current number of failed jobs: 12

Name                StartTime             EndTime               Duration
----                ---------             -------               --------
AddUbuntuImage      11/14/2018 2:15:11 PM 11/14/2018 2:15:13 PM 0m:1s
AddServerCoreImage  11/14/2018 2:15:13 PM 11/14/2018 2:15:13 PM 0m:0s
AddServerFullImage  11/14/2018 2:15:13 PM 11/14/2018 2:15:14 PM 0m:0s
AddMySQLAzpkg       11/14/2018 2:15:13 PM 11/14/2018 2:15:14 PM 0m:0s
AddSQLServerAzpkg   11/14/2018 2:15:14 PM 11/14/2018 2:15:14 PM 0m:0s
DeployMySQLHost     11/14/2018 2:15:16 PM 11/14/2018 2:15:17 PM 0m:1s
DeploySQLServerHost 11/14/2018 2:15:16 PM 11/14/2018 2:15:18 PM 0m:1s
AddMySQLHosting     11/14/2018 2:15:17 PM 11/14/2018 2:15:18 PM 0m:1s
AddSQLHosting       11/14/2018 2:15:17 PM 11/14/2018 2:15:19 PM 0m:1s
DeployAppServiceFS  11/14/2018 2:15:17 PM 11/14/2018 2:15:19 PM 0m:1s
DeployAppServiceDB  11/14/2018 2:15:18 PM 11/14/2018 2:15:19 PM 0m:0s
DeployAppService    11/14/2018 2:15:19 PM 11/14/2018 2:15:20 PM 0m:0s
`

After several retries I was still experiencing this issue. In the end I did a redeployment and ran the script without the -configAsdkOfflineZipPath parameter.

Examples need (some) fixing

Hello Matt,

Your examples need a small fix - your ISO path is not "D:\WS2016EVALISO.iso", rather "D:\ASDKFiles\WS2016EVALISO.iso". Awesome work, btw!

Cheers,
Tom

Validate Azure AD credentials at start (offline download method)

I recently ran the script with the offline download method and noticed that the script failed after the extraction part. The issue was that I used the wrong Azure AD credentials.

I also noticed that a lot of validation steps are executed when the script starts. It would be great if the Azure AD login credentials are also validated at the start, so that these can be corrected immediately if they are incorrect.

Alternate EnvironmentName

Are there any changes needed to the script if your environment is "AzureUSGovernment"?

We updated the script to use "AzureUSGovernment" instead of AzureCloud or AzureChinaCloud, however, the process never completes and we get the following:

Current number of failed jobs: 7

Name StartTime EndTime Duratio


AddUbuntuImage 9/23/2019 3:32:40 PM 9/23/2019 3:32:47 PM 0m:7s
AddServerCore2016Image 9/23/2019 3:32:41 PM 9/23/2019 3:32:47 PM 0m:6s
AddServerFull2016Image 9/23/2019 3:32:42 PM 9/23/2019 3:32:47 PM 0m:5s
AddServerCore2019Image 9/23/2019 3:32:42 PM 9/23/2019 3:32:48 PM 0m:5s
AddServerFull2019Image 9/23/2019 3:32:43 PM 9/23/2019 3:32:48 PM 0m:5s
AddAppServicePreReqs 9/23/2019 3:32:50 PM 9/23/2019 3:32:57 PM 0m:6s
DeployAppService 9/23/2019 3:32:51 PM 9/23/2019 3:34:03 PM 1m:12s

Thanks,
Eric

Appservice deployment failed

I've ran the post deployment script on a fresh ASDK with the following arguments:

C:\ConfigASDK> .\ConfigASDK.ps1 -azureDirectoryTenantName "xxxxx.onmicrosoft.com" -authenticationType AzureAD `
-downloadPath "D:\ASDKpostdeploytemp" -ISOPath "D:\ASDKdependencies_offlinedownload\ConfigASDKfiles\Windows_Server_20
16_Datacenter_EVAL_en-us_14393_refresh.ISO" -azureStackAdminPwd "xxxxx" `
-VMpwd "xxxx" -azureAdUsername "xxxx" -azureAdPwd "xxxx" `
-registerASDK -useAzureCredsForRegistration -azureRegSubId "xxxx" -skipMySQL -skipCustomizeHost

The post deployment step for DeployAppService failed.
After checking the AppServiceLog it, it seems that a virtual machine is being deployed. But the deployment of this virtual machine failed.

From the: AppServiceLog1116-011218.txt:

"extensions": [
    {
      "name": "OnStart",
      "type": "Microsoft.Compute.CustomScriptExtension",
      "typeHandlerVersion": "1.9.1",
      "substatuses": [
        {
          "code": "ComponentStatus/StdOut/Succeeded",
          "level": "Info",
          "displayStatus": "Provisioning Succeeded",
          "message": "tabase to be ready...\\n2018.11.16 02:56:56 ---- Waiting for Hosting database to be ready...\\n2018.11.16 02:58:06 ---- Waiting for Hosting database to be ready...\\n2018.11.16 02:59:17 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:00:27 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:01:37 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:02:47 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:03:57 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:05:07 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:06:18 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:07:28 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:08:38 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:09:48 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:10:59 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:12:09 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:13:19 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:14:29 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:15:39 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:16:49 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:18:00 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:19:10 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:20:21 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:21:32 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:22:42 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:23:53 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:25:03 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:26:29 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:27:40 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:28:50 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:30:00 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:31:10 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:32:21 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:33:31 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:34:41 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:35:51 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:37:02 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:38:12 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:39:22 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:40:33 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:41:43 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:42:54 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:44:04 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:45:14 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:46:24 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:47:35 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:48:45 ---- Waiting for Hosting database to be ready...\\n<WARNING> Exception: Could not find stored procedure 'runtime.healthCheck_v88'.\\n2018.11.16 03:49:50 ---- Waiting for Hosting database to be ready...\\n<WARNING> Exception: Could not find stored procedure 'runtime.healthCheck_v88'.\\n2018.11.16 03:50:50 ---- Waiting for Hosting database to be ready...\\n<WARNING> Exception: Could not find stored procedure 'runtime.healthCheck_v88'.\\n2018.11.16 03:51:50 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:52:52 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:53:52 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:54:52 ---- Waiting for Hosting database to be ready...\\n2018.11.16 03:55:52 ---- Hosting Database is ready!\\n2018.11.16 03:56:21 ---- Start Role completed\\n2018.11.16 03:56:30 ---- App Service Role OnStart() has been configured.\\n2018.11.16 03:56:31 ---- App Service role installation has completed successfully.\\n\\n"

        },

        {
          "code": "ComponentStatus/StdErr/Succeeded",
          "level": "Info",
          "displayStatus": "Provisioning Succeeded",
          "message": ""
        }

      ],
      "statuses": [
        {
          "code": "ProvisioningState/Succeeded",
          "level": "Info",
          "displayStatus": "Provisioning Succeeded",
          "message": "Finished executing command"
        }

      ]

    }

  ],

  "statuses": [

    {
      "code": "ProvisioningState/Succeeded/osProvisioningComplete",
      "level": "Info",
      "displayStatus": "OS provisioning complete",
      "time": "2018-11-16T03:56:59.1063064+00:00"
    },

    {
      "code": "PowerState/running",
      "level": "Info",
      "displayStatus": "VM running"

    }

  ]

}

[6AC4:86EC][2018-11-16T05:39:57]: [Websites]: ****TryLogAppServiceResourceStatus Ends****
[6AC4:5F0C][2018-11-16T05:39:58]: [Websites]: System.AggregateException: One or more errors occurred. ---> System.Exception: **Deployment Failed. Refer deployment logs for more details**
   at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.<Run>d__a.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Microsoft.Web.Hosting.SingleInstaller.WixBA.ProcessCommandLine()
   at Microsoft.Web.Hosting.SingleInstaller.WixBA.Run()
---> (Inner Exception #0) System.Exception: Deployment Failed. Refer deployment logs for more details
   at Microsoft.Web.Hosting.SingleInstaller.Logic.SilentDeployLogic.<Run>d__a.MoveNext()<--- 

[6AC4:8418][2018-11-16T05:39:58]: Shutting down, exit code: 0xffffffff
[6AC4:8418][2018-11-16T05:39:58]: Variable: LocalAppDataFolder = C:\Users\AzureStackAdmin\AppData\Local\
[6AC4:8418][2018-11-16T05:39:58]: Variable: NETFRAMEWORK45 = 394802
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleAction = 4
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleElevated = 1
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleLog = D:\ASDKpostdeploytemp\ASDK\appservice\AppServiceLog1116-011218.txt
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleName = Microsoft Azure App Service
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleOriginalSource = D:\ASDKpostdeploytemp\ASDK\appservice\appservice.exe
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleProviderKey = {aecf39f0-59a8-4979-aa8b-585afd87273b}
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleTag =
[6AC4:8418][2018-11-16T05:39:58]: Variable: WixBundleVersion = 78.0.5.0
[6AC4:8418][2018-11-16T05:39:58]: Exit code: 0xffffffff, restarting: No

Says my account is a Microsoft Account

I am getting the following error below. The account I am using is an Organization account and not a Microsoft account.

Testing Azure Login:

PS>TerminatingError(Add-AzureRmAccount): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: -Credential parameter can only be used with Organization ID credentials. For more information, please refer to http://go.microsoft.com/fwlink/?linkid=331007&clcid=0x409 for more information about the difference between an organizational account and a Microsoft account."
VERBOSE: -Credential parameter can only be used with Organization ID credentials. For more information, please refer to http://go.microsoft.com/fwlink/?linkid=331007&clcid=0x409 for more information about the difference between an organizational account and a Microsoft account.

Can't retry appservice deployment due to an existing database

My previous run of the post deployment script failed, during the step DeployAppService (probably during the deployment of an Appservice virtual machine, see ticket #60 ).
If I rerun the post deployment script it fails, due to a database (appservice_hosting) which already exists.

The AppServiceLog for this run shows:

[7BE0:2078][2018-11-16T07:52:55]: [Websites]: System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The database 'appservice_hosting' already exists. Please choose another SQL instance or remove the existing database and retry.

   at Microsoft.Web.Hosting.Common.DatabaseServerHelper.TestConnectivity(String serverName, String userName, String password, String dbObjsPrefix)

Perhaps it's possible to adjust the script so that:

  1. it checks if the database exists and validates it.
  2. Reuse the existing database if it's valid and continue from there.

Alternatively it might be an idea to remove the existing database, as cleanup step for this task within the script. (This would be necessary if the database ends up being corrupted anyhow)

addappserviceprereq failure

I cannot get by the add app service prereq step

VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_LogicalDisk WHERE DeviceId='D:','queryDialect' = WQL,'namespaceName' = root\cimv2'.
VERBOSE: Operation 'Query CimInstances' complete.
VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_LogicalDisk WHERE DeviceId='D:','queryDialect' = WQL,'namespaceName' = root\cimv2'.
VERBOSE: Operation 'Query CimInstances' complete.
You don't need to sign into the Azure Portal to grant permissions, ASDK Configurator will automate this for you. Please wait.
VERBOSE: GET https://login.microsoftonline.com/spacefarm.onmicrosoft.com/.well-known/openid-configuration with 0-byte payload
VERBOSE: received 1575-byte response of content type application/json; charset=utf-8
ASDK Configurator Stage: AddAppServicePreReqs failed. Updating ConfigASDK Progress database
You cannot call a method on a null-valued expression..Exception.Message

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.