Git Product home page Git Product logo

azurestack's Introduction

Azure Stack POC Configurator 2008.1

Version Compatibility

The current version of the AzSPoC.ps1 script has been tested with the following versions:

  • ASDK build 1.2008.0.59 (2008)
  • Azure Stack PowerShell Module 2.0.2-preview
  • Az PowerShell Module 0.10.0-preview

IMPORTANT - this version of the AzSPoC.ps1 script has been tested with ASDK build 2008.0.59, Azure Stack PowerShell 2.0.2-preview. and Az PowerShell 0.10.0-preview.

Description

Once you have completed the installation of your ASDK, you need to populate it with content, in order to have a more complete experience. This content may include virtual machine images, extensions, database hosts, app services and more. All of that takes time to install and configure. The purpose of this AzSPoC.ps1 script is to automate as much as possible, the post-deployment tasks for the Azure Stack Development Kit

This includes:

  • Validates all input parameters
  • Checks ASDK host memory for enough resources
  • Installs Azure Stack PowerShell and AzureRM modules
  • Ensures password for VMs meets complexity required for App Service installation
  • Updated password expiration (180 days)
  • Disable Windows Update on all infrastructures VMs and ASDK host (To avoid the temptation to apply the patches...)
  • Tools installation (Azure Stack Tools)
  • Registration of the ASDK to Azure (Optional - enables Marketplace Syndication)
  • Windows Server 2016 Datacenter Evaluation (Full + Core) images added to the Platform Image Repository
  • Windows Server 2019 Datacenter Evaluation (Full + Core) images added to the Platform Image Repository (Optional)
  • All Windows Server images are patched with latest SSU and CUs automatically
  • Ubuntu Server 16.04-LTS image added to the Platform Image Repository
  • Corresponding gallery items created in the Marketplace for the Windows Server and Ubuntu Server images
  • Gallery item created for MySQL 5.7, 8.0 and SQL Server 2017 (all on Ubuntu Server 16.04 LTS)
  • Automates adding of Microsoft VM Extensions to Gallery from Marketplace (for registered ASDKs)
  • Automates adding of Microsoft AzureStack Add-on RP Windows Server image from Marketplace (for registered ASDKs)
  • MySQL Resource Provider installation
  • SQL Server Resource Provider installation
  • Deployment of a MySQL 8.0 hosting server on Ubuntu Server 16.04 LTS
  • Deployment of a SQL Server 2017 hosting server on Ubuntu Server 16.04 LTS
  • Adding SQL Server & MySQL hosting servers to Resource Providers including SKU/Quotas
  • App Service prerequisites installation (SQL Server PowerShell, SQL Server DB VM and Standalone File Server)
  • App Service Resource Provider sources download and certificates generation
  • App Service Service Principal Created (for Azure AD and ADFS)
  • Grants App Service Service Principal Admin Consent (for Azure AD)
  • Automates deployment of the latest App Service release using dynamically constructed JSON
  • Set new default Quotas for MySQL, SQL Server, Compute, Network, Storage and Key Vault
  • Creates a Base Plan and Offer containing all deployed services
  • Creates a user subscription for the logged in tenant, and activates all resource providers
  • Installs a selection of useful apps via Chocolatey (Putty, Chrome, VS Code, WinDirStat, WinSCP, Python3)
  • Configures Python & Azure CLI for usage with ASDK
  • MySQL, SQL, App Service and Host Customization can be optionally skipped
  • Cleans up download folder to ensure clean future runs
  • Transcript Log for errors and troubleshooting
  • Progress Tracking and rerun reliability with AzSPoC database hosted on SqlLocalDB (2017)
  • Stores script output in a AzSPoCOutput.txt, for future reference
  • Supports usage in offline/disconnected environments
  • New -serialMode which excecutes VM deployments in serial, rather than parallel - better for older hardware
  • Now supports ASDKs that have been depoyed with a custom domain suffix, e.g. https://portal.west.contoso.lab

Additionally, if you encounter an issue, try re-running the script with the same command you used to run it previously. The script is written in such a way that it shouldn't try to rerun previously completed steps.

New in 1907 onwards - Multi-Node Support

If you are regularly performing POCs on Azure Stack Multi-Node systems (aka Integrated System, or "multinode"), the Azure Stack POC Configurator now provides experimental support for configuring a multinode system. There is specific guidance on how to use the script with a multinode deployment. Again, THIS IS FOR POC USE ONLY and for this release, should be considered EXPERIMENTAL although I do want to ensure it works as well as the current version for ASDKs.

If you're interested, you should read more about the multinode deployment option here.

New in 2102 onwards - SQL & MySQL RP Deprecated on ASDK

As of ASDK 2102, the MySQL and SQL Server RPs will no longer be supported on the ASDK. The AzSPoC project has been updated to skip the deployment of the Database RPs on the ASDK system.

Important Considerations

Firstly, you must have already deployed the ASDK. Secondly, for an Azure AD deployment of the ASDK (or if you want use AzSPoC.ps1 with an ADFS deployment of the ASDK, but register it to Azure), to run the AzSPoC.ps1 script, you need to be using a true organizational account, such as [email protected] or [email protected], and this account should have global admin credentials for the specified Azure AD directory. Even if you have a non-organizational account, such as an outlook.com account, that has the right level of privilege in Azure AD, the AzSPoC.ps1 script uses a -Credential switch for non-interactive login, which doesn’t work with non-organizational accounts. You will receive an error.

You do not need to install Azure/AzureStack PowerShell before running the script. The Azure Stack POC Configurator will install and configure Azure/AzureStack PowerShell for you. If you have already installed the Azure/AzureStack PowerShell modules, the script will first clean your PowerShell configuration to ensure optimal operation.

ASDK Host Sizing

The Azure Stack POC Configurator will deploy a total of 12 additional virtual machines to support the MySQL, SQL Server, and App Service Resource Providers, should you choose to deploy all the RPs. You will therefore need an ASDK host machine that has at least 29.5GB free memory to support these additional virtual machines:

  • MySQL RP - 2 VMs (RP VM, DB Host VM) = 5.5GB
  • SQL Server RP - 2 VMs (RP VM, DB Host VM) = 5.5GB
  • App Service - 7 VMs (File Server, SQL Host, Front End Scale Set, Shared Worker Tier, Publisher Scale Set, CN0-VM, Management Servers Scale Set) = 23GB

Total with all RPs deployed = 34GB in addition to the core running Azure Stack ASDK VMs

Before you run the Azure Stack POC Configurator, ensure that you have enough memory available on your ASDK host system. On a typical ASDK system, the core Azure Stack VMs will already consume between 50-60GB of host memory, so please ensure you have enough remaining to deploy the additional resource providers. As per the updated specs here: https://docs.microsoft.com/en-us/azure/azure-stack/asdk/asdk-deploy-considerations, a system with at least 192GB memory is recommended to evaluate all features.

Running on older/low performance hardware

If your ASDK system doesn't have SSDs, or is an older system, the Azure Stack POC Configurator may experience issues during parallel deployment of virtual machines. This may also be true in environments where you have virtualized the ASDK, and are running it nested on an alternative virtualization/cloud platform, such as ESXi, or in an Azure VM. If that's the case, it's recommended to run the AzSPoC.ps1 script with the -serialMode flag, and this will instruct the script to deploy any VMs, one at a time. This takes a little longer, but offers increased reliability on systems with lower levels of performance.

Offline/Disconnected Support

  • Do you want to deploy your ASDK in an environment that doesn't have internet connectivity?
  • Do you want to download the 5GB+ of required dependencies (Ubuntu image, Database resource providers, App Service binaries, JSON files etc) in advance of running the script?

If you answered yes to any of those, you can deploy the AzSPoC in an offline/disconnected mode. To do so, you should read the offline/disconnected documentation.

Step by Step Guidance (for internet-connected ASDK)

Step 1 - Download the AzSPoC.ps1 script

The first step in the process is to create a local folder on the ASDK host, and then download the AzSPoC.ps1.

  • Deploy your ASDK
  • Once complete, login as azurestack\azurestackadmin on your ASDK host.
  • Open an elevated PowerShell window and run the following script to download the AzSPoC.ps1 file:
# Create directory on the root drive.
New-Item -ItemType Directory -Force -Path "C:\AzSPoC"
Set-Location "C:\AzSPoC"

# Download the AzSPoC Script.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Webrequest http://bit.ly/AzSPoC -UseBasicParsing -OutFile AzSPoC.ps1

Step 2 - Previous Run Cleanup

If you have run the Azure Stack POC Configurator successfully on this physical host before, you may have artifacts left over in your -downloadPath (assuming you use the same path each time) that can affect the next deployment, so please remove any existing files and folders from within your -downloadPath before running the AzSPoC.ps1 script. If you only have a "Completed" folder, this does not need to be deleted.

Existing files

Step 3 - Run the AzSPoC.ps1 script

With the script downloaded successfully, you can move on to running the script. Below, you will find a number of examples to help you run the script, depending on your scenario. Before you use the examples, please read the general guidance below:

General Guidance

  • For the -azureDirectoryTenantName, You can use your "domain.onmicrosoft.com" tenant name, or if you are using a custom domain name in Azure AD, such as contoso.com, you can also use that.
  • For the -downloadPath, ensure the folder exists, and you have enough space to hold up to 3GB of files for an Online installation and up to 20GB for an Offline installation (providing the ZIP file). This should be a path that is local to your ASDK host, NOT a mapped drive, NOT a USB drive, NOT on the Cluster Shared Volume - known issues exist with mapped drives, USB and CSV and mounting VHDs at this time
  • -ISOPath should point to the Windows Server 2016 Evaluation media that you downloaded with your ASDK files, or that is available on the Microsoft Eval Center. This should be version 1607. Do NOT use Windows Server 2019 or any of the semi-annual releases as these are not supported by the database and App Service resource providers at this time
  • -ISOPath2019 is optional, and should point to the Windows Server 2019 Evaluation media that you can download from here: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019. This should be version 1809. Note - this will not be used for deployment of any Resource Providers such as the Database RPs, or the App Service - these will still use the 2016 images
  • -asdkHostPwd is the password you used when deploying your ASDK (for ASDK deployments only)
  • -VMpwd is the password assigned to all VMs created by the script. Important - App Service installation requires a strong password, at least 12 characters long, with at least 3 of the following options: 1 upper case, lower case, 1 number, 1 special character.
  • -azureAdUsername and -azureAdPwd are the Service Administrator credentials you used when you deployed your Azure Stack system (in Azure AD connected mode)
  • Use the -registerAzS flag to instruct the script to register your Azure Stack system to Azure.
  • Use the -useAzureCredsForRegistration flag if you want to use the same Service Administrator Azure AD credentials to register the ASDK, as you did when deploying the ASDK.
  • If you specify -registerAzS but forget to use -useAzureCredsForRegistration, you will be prompted for alternative credentials.
  • If you are using older hardware, or lower performance hardware with no SSD storage, and are experiencing VM deployment errors, use -serialMode to set the script to deploy VMs one at a time, rather than in parallel. This can help with reliability on older, lower performance hardware.
  • If you chose to customize the initial deployment of your ASDK by changing the region (default = "local") or the domain suffix (default = "azurestack.external"), you can use the flag -customDomainSuffix along with a correctly formed region and domain suffix, such as "west.contoso.com"
  • If you wish to authenticate/register to an alternative cloud, such as AzureUSGovernment, AzureGermanCloud etc, use -azureEnvironment and the name of the cloud. This name can be retrieved using Get-AzureRmEnvironment.

Usage Examples:

Scenario 1 - Using Azure AD for authentication. You wish to register the ASDK to Azure as part of the automated process. For registration, you wish to use the same Azure AD credentials as you used when you deployed your ASDK:

.\AzSPoC.ps1 -azureDirectoryTenantName "contoso.onmicrosoft.com" -authenticationType AzureAD `
-downloadPath "D:\ASDKfiles" -ISOPath "D:\WS2016EVALISO.iso" -asdkHostPwd 'Passw0rd123!' `
-VMpwd 'Passw0rd123!' -azureAdUsername "[email protected]" -azureAdPwd 'Passw0rd123!' `
-registerAzS -useAzureCredsForRegistration -azureRegSubId "01234567-abcd-8901-234a-bcde5678fghi"

Please Note

  • If you also want the script to create and upload Windows Server 2019 images, simply include -ISOPath2019 "D:\WS2019EVALISO.iso" and the script will take care of the rest.

Scenario 2 - Using Azure AD for authentication. You wish to register the ASDK to Azure as part of the automated process. For registration, you wish to use a different set of Azure AD credentials from the set you used when you deployed your ASDK:

.\AzSPoC.ps1 -azureDirectoryTenantName "contoso.onmicrosoft.com" -authenticationType AzureAD `
-downloadPath "D:\ASDKfiles" -ISOPath "D:\WS2016EVALISO.iso" -asdkHostPwd 'Passw0rd123!' `
-VMpwd 'Passw0rd123!' -azureAdUsername "[email protected]" -azureAdPwd 'Passw0rd123!' `
-registerAzS -azureRegUsername "[email protected]" -azureRegPwd 'Passw0rd123!' `
-azureRegSubId "01234567-abcd-8901-234a-bcde5678fghi"

Please Note

  • The key difference this time, is that the -azureRegUsername and -azureRegPwd flags are used, to capture the different set of Azure AD credentials (and therefore, different subscription) for registering the ASDK to Azure.

Scenario 3 - Using Azure AD for authentication. You choose not to register the ASDK to Azure as part of the automated process:

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

Scenario 4 - Using ADFS for authentication. You wish to register the ASDK to Azure as part of the automated process. For registration, you will have to use a different set of Azure AD credentials as your ASDK was deployed with ADFS:

.\AzSPoC.ps1 -authenticationType ADFS -downloadPath "D:\ASDKfiles" -ISOPath "D:\WS2016EVALISO.iso" `
-asdkHostPwd 'Passw0rd123!' -VMpwd 'Passw0rd123!' -registerAzS `
-azureRegUsername "[email protected]" -azureRegPwd 'Passw0rd123!' `
-azureRegSubId "01234567-abcd-8901-234a-bcde5678fghi"

Scenario 5 - Using ADFS for authentication. You choose not to register the ASDK to Azure as part of the automated process:

.\AzSPoC.ps1 -authenticationType ADFS -downloadPath "D:\ASDKfiles" -ISOPath "D:\WS2016EVALISO.iso" `
-asdkHostPwd 'Passw0rd123!' -VMpwd 'Passw0rd123!'

Optional Actions

Use the following switches to skip deployment of additional Resource Providers, or host customization. Note, if you don't specify these switches, the Resource Provider installation/customization will be performed as part of the deployment.

  • Use -skipMySQL to not install the MySQL Resource Provider, Hosting Server and SKU/Quotas.
  • Use -skipMSSQL to not install the Microsoft SQL Server Resource Provider, Hosting Server and SKU/Quotas.
  • Use -skipAppService to not install the App Service pre-requisites and App Service Resource Provider.
  • Use -skipCustomizeAsdkHost to not customize your ASDK host with useful apps such as Putty, Visual Studio Code, Google Chrome and more.

Post-Script Actions

This script can take many hours to finish, depending on your hardware and download speeds. There are no specific post-script actions to perform after the script has finished.

Known Issues

  • A Windows Server 2016 ISO is required. This should be build 1607 (The RTM release) and not any of the Windows Server Semi-Annual Channel releases (1709, 1803, 1809). These have not been validated for support with the database and App Service resource providers, so don't use those builds at this time. The script will block their usage.
  • If you wish to upload Windows Server 2019 images for testing, please use the 17763 build, which is the Windows Server 2019 RTM and can be downloaded from here: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019
  • Do not use a mapped drive for your -downloadPath on your ASDK host. There are known issues which are yet to be resolved. Please use a local drive.
  • If you are running the script on a large number of ASDK Hosts simultaneously, and start them at the same time, you may find that certain steps fail. One example is the ASDK Host Customization step, which downloads certain components from the internet. If all of your ASDK Hosts are using the same Public IP (visible to the internet), you may receive errors such as "The remote server returned an error: (429) Too Many Requests" - if this happens, wait a few mins, then restart the script.
  • If registration fails with a "The registration token is malformed" error message, please follow the guidance in this GitHub issue Azure/AzureStack-Tools#597 and once edited, re-run the AzSPoC Configurator.

Troubleshooting & Improvements

This script, and the packages have been developed, and tested, to the best of my ability. I'm not a PowerShell guru, nor a specialist in Linux scripting, thus, if you do encounter issues, let me know through GitHub and I'll do my best to resolve them.

Likewise, if you are awesome at PowerShell, or Linux scripting, or would like to improve the solution, let me know, and we can collaborate to improve the overall project!

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

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

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?

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?

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"
}

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

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

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

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
    

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" :)

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

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

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",
},

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

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

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`

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

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.

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.

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

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.

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)

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

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

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!

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

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

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!

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.

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.

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.

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

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.

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

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

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

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.

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

Typo at line 1692

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

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

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?

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

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.

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.

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.

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.