Giter Site home page Giter Site logo

wvdquickstart's People

Contributors

justin-shiah avatar madsamuel avatar samvdjagt avatar stgeorgi 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wvdquickstart's Issues

Error testing domain controller connectivity through PowerShell.

Hello
I keep getting the following error when trying to provision WVD using this quick start:

"Error testing domain controller connectivity through PowerShell. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 52.224.79.215:5986"

Please let me know your thoughts.

Thanks

500 error when creating VMs

Has anyone seen this error? Template deploys but pipeline eventually stalls on creating VMs. In activity I see chain of "internal error 500"

Pipeline eventually times out, VMs never created:
Capture

Error in Activity logs:
Capture2

Variable not found.

Hi,

I get an error when the wizzard is launched:

Get-AutomationVariable : Variable not found. To create this Variable, navigate to the Variables blade and create a Variable named: principalId. Refer doc for more details (https://docs.microsoft.com/en-us/azure/automation/shared-resources/variables#create-and-get-a-variable) At line:25 char:16 + $principalId = Get-AutomationVariable -Name 'principalId' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-AutomationVariable], AssetManagementClientException + FullyQualifiedErrorId : 3,Orchestrator.AssetManagement.Cmdlets.GetAutomationVariableCmdlet

Get-AutomationVariable : Variable not found. To create this Variable, navigate to the Variables blade and create a Variable named: ObjectId. Refer doc for more details (https://docs.microsoft.com/en-us/azure/automation/shared-resources/variables#create-and-get-a-variable) At line:34 char:13 + $ObjectId = Get-AutomationVariable -Name 'ObjectId' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-AutomationVariable], AssetManagementClientException + FullyQualifiedErrorId : 3,Orchestrator.AssetManagement.Cmdlets.GetAutomationVariableCmdlet

thx
regards

inputValidationRunbook failures

I have set up a test environment on my MSDN sub with Azure AD DS, and can deploy WVD without issue in the portal. But every time I try to deploy the quickstart and supplying the same credentials it fails with:

Connect-AzureAD : One or more errors occurred.: unknown_user_type: Unknown User Type At line:57 char:3 + Connect-AzureAD -Credential $domainCredentials + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : AuthenticationError: (:) [Connect-AzureAD], AadAuthenticationFailedException + FullyQualifiedErrorId : Connect-AzureAD,Microsoft.Open.Azure.AD.CommonLibrary.ConnectAzureAD

and then

Invalid domain join username or password entered - Connecting to Azure AD failed. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException

CreateDevopsPipeline failed due to in preview commands

Running the quickstart template fails at the devops pipeline creation due to warnings from the preview API version

Here is the attached Status message

{
    "status": "failed",
    "error": {
        "code": "ResourceDeploymentFailure",
        "message": "The resource operation completed with terminal provisioning state 'failed'.",
        "details": [
            {
                "code": "DeploymentScriptError",
                "message": "The provided script failed with multiple errors. First error:\r\nThis command is in preview. It may be changed/removed in a future release.. Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information.",
                "details": [
                    {
                        "code": "DeploymentScriptError",
                        "message": "This command is in preview. It may be changed/removed in a future release."
                    },
                    {
                        "code": "DeploymentScriptError",
                        "message": "WARNING: Successfully created a pipeline with Name: WVD QuickStart, Id: 1."
                    },
                    {
                        "code": "DeploymentScriptError",
                        "message": "ERROR: Could not queue the build because there were validation errors or warnings."
                    }
                ]
            }
        ]
    }
}

The provisioning state returns failed and status Conflict
The azure devops pipeline has been successfully created however.

I am trying to see if the ARM template or API version can be changed to suppress the warnings or see if there's an underlying issue and will report here my findings.

Regards

Template parameter JToken type is | not valid. Expected 'String, Uri'. Actual 'Object'. error

Hi,
First off. An amazing project! Saves soo much time.

At the moment, when I run the job to create for a new AD, I receive this error at the Deploy_WVDSessionHosts - Deploy module (VirtualMachines) step in the pipeline.

VERBOSE: Deploy to resource group 'WVD_Test'
VERBOSE: GET https://raw.githubusercontent.com/stgeorgi/wvdquickstart/master/Modules/ARM/VirtualMachines/deploy.json with 0-byte payload
VERBOSE: received 66423-byte response of content type text/plain
VERBOSE: Content encoding: utf-8
VERBOSE: Evaluating schema [https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#]
VERBOSE: Handling resource group level deployment
VERBOSE: Performing the operation "Creating Deployment" on target "WVD_Test".
New-AzResourceGroupDeployment: /home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
Line |
76 | … eployment = New-AzResourceGroupDeployment @DeploymentInputs -Resource …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 23:28:21 - Error: Code=InvalidTemplate; Message=Deployment
| template validation failed: 'Template parameter JToken type is
| not valid. Expected 'String, Uri'. Actual 'Object'. Please see
| https://aka.ms/resource-manager-parameter-files for usage
| details.'.

Am I doing something wrong.

Deployment in EU region fail

Deployment fails because of westeurope region. It tries to put metadata to the same deployment region, but actually it's available only in several US regions yet.
2020-12-06 02_29_25-Pipelines - Run WVD Deployment logs and 7 more pages -  InPrivate  - Microsoft​

WVD QuickStart Deployment failing in UK South Region.

Has anyone managed to successfully complete the WVD quickstart template 'til the end in the UK South region?

Creating the Active Directory, Virtual Network, and AD Connector on the Domain Controller all works smoothly. However, when in comes to clicking on the link to Deploy to Azure, the first template to create the Automation Account and runbooks, I'm getting an error half-way through. The Automation account seems to be created along with various runbooks. But when it comes to creating a job, the template bombs out and fails to complete the rest of the deployment.

I've attached 3 screen shots: the first shows how far it gets before failing and the other screenshots shows details of the error, but I can't make sense out of them.

I've been at this for a couple of days. It's supposed to be simple, but when it goes wrong it's very difficult to figure out where it's going wrong. Anyone one whose completed this in UK South, I'd welcome a pointer to see where I may be going wrong. I'm pretty sure the Azure environment is ok. It's getting stuck on some resource not in a state to be provisioned with necessary priviledges, but I don't know how to debug this...

Any help would be greatly appreciated
WVD - QuickStart - Deploy to Azure Template - Deployment  Failed - Screenshot 1
WVD - QuickStart - Deploy to Azure Template - Deployment  Failed - Screenshot 2
WVD - QuickStart - Deploy to Azure Template - Deployment  Failed - Screenshot 3

Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access

Hi,

I'm running stuck during the first run. Have disabled, CA policies, Identity Protection and revoked al authentication token and tried 2 subscription admin accounts. Every time the same error message. Executing completely empty subscription.

Any advise?

==========
Connect-AzAccount : AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 68ea69c4-9700-46ef-991b-c398615b8300 Correlation ID: 9373f28a-8e7b-4b99-9101-054e96774b03 Timestamp: 2020-08-20 20:06:22Z At line:51 char:1 + Connect-AzAccount -Environment 'AzureCloud' -Credential $AzCredential ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Connect-AzAccount], AdalClaimChallengeException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

elect-AzSubscription : Run Connect-AzAccount to login. At line:52 char:1 + Select-AzSubscription -SubscriptionId $SubscriptionId + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzContext], PSInvalidOperationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.SetAzureRMContextCommand

Time
Type
Details
8/20/2020, 10:06:22 PM
Error
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 68ea69c4-9700-46ef-991b-c398615b8300 Correlation ID: 9373f28a-8e7b-4b99-9101-054e96774b03 Timestamp: 2020-08-20 20:06:22Z
8/20/2020, 10:06:23 PM
Error
Run Connect-AzAccount to login.
8/20/2020, 10:06:24 PM
Error
Please authenticate to Azure & Azure AD using Login-AzAccount and Connect-AzureAD cmdlets and then run this script

deployment location

Hi,
I want to deploy in westeurope, however, location for deployment of WVD only allows us locations (see below).
Where can I override this to deploy my hostpools as close as possible but deploy WVD metadata in allowed regions?
Thank you for the guidance

 | 14:17:33 - Error: Code=LocationNotAvailableForResourceType;
 | Message=The provided location 'westeurope' is not available
 | for resource type 'Microsoft.DesktopVirtualization/hostpools'.
 | List of available regions for the resource type is
 | 'eastus,eastus2,westus,westus2,northcentralus,southcentralus,westcentralus,centralus'.

##[error]PowerShell exited with code '1'.

Script Execution Complete

Finishing: Deploy module [WvdHostPools] in [rg-WVD-CUR] via [WVDServiceConnection]

AD Connect Pre-Req

It seems the "devOpsSetupRunbook" is contingent on the "WVDTestUsers" group being present for it to be successful. In my existing test AD environment, AD Connect is not syncing everything in the directory, so it couldn't find WVDTestUsers after the next sync and the runbook eventually fails on this step. Something to check if you're trying to use this deployment with your own AD environment. Maybe tweak the pre-req for people using existing AD/ADConnect configurations? Awesome, great work!

Issue in Devops Project - The service connection does not exist or has not been authorized for use. - Subscription references service connection WVDServiceConnection which could not be found

The Azure ARM template looks to have built successfully. Log in to Azure Devops, see the project, open the pipeline, but its in error state:

There was a resource authorization issue: "The pipeline is not valid. Job Process_input_parameters: Step Process_inputer_parameters_task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz. Job Deploy_wvdAssetsStorage: Step Deploy_StorageAccounts_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz."

There's a button to authorise resource next to it. You press and it says resource authorised. Try to re-run but get this error.
Trying to deploy in Australia East location.

What could i be doing wrong?

Encountered error(s) while parsing pipeline YAML:
Job Process_input_parameters: Step Process_inputer_parameters_task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_wvdAssetsStorage: Step Deploy_StorageAccounts_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_wvdAssetsStorage: Step PostDeploy_StorageAccounts_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_WVDProfilesStorageAccount01: Step Deploy_StorageAccounts_Task_01 input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_WVDHostPool: Step Deploy_WVDHostPool_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_DesktopAppGroup: Step Deploy_WvdApplicationGroups_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_WVDSessionHosts: Step Deploy_SessionHosts_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_Workspace: Step Deploy_WvdWorkspaces_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_RemoteAppGroup: Step Deploy_WvdApplicationGroups_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Deploy_Application: Step Deploy_WvdApplications_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.

Deploy module [VirtualMachines] in [WVD] via [WVDServiceConnection]

VERBOSE: Deploy to resource group 'WVD'
VERBOSE: GET https://raw.githubusercontent.com/stgeorgi/wvdquickstart/master/Modules/ARM/VirtualMachines/deploy.json with 0-byte payload
VERBOSE: received 66423-byte response of content type text/plain
VERBOSE: Content encoding: utf-8
VERBOSE: Evaluating schema [https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#]
VERBOSE: Handling resource group level deployment
VERBOSE: Performing the operation "Creating Deployment" on target "WVD".
New-AzResourceGroupDeployment: /home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
Line |
76 | … eployment = New-AzResourceGroupDeployment @DeploymentInputs -Resource …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 01:38:52 - Error: Code=InvalidTemplate; Message=Deployment
| template validation failed: 'Template parameter JToken type is
| not valid. Expected 'String, Uri'. Actual 'Object'. Please see
| https://aka.ms/resource-manager-parameter-files for usage
| details.'.

##[error]PowerShell exited with code '1'.

Script Execution Complete

Finishing: Deploy module [VirtualMachines] in [WVD] via [WVDServiceConnection]

Deploy module [VirtualMachines] in [*****] via [WVDServiceConnection]

Failing at Deploy_WVDSessionHost with the error:

"2021-03-02T13:41:35.3756913Z ##[section]Starting: Deploy module [VirtualMachines] in [gh-tog-test] via [WVDServiceConnection]
2021-03-02T13:41:35.3764224Z ==============================================================================
2021-03-02T13:41:35.3764677Z Task : Azure PowerShell
2021-03-02T13:41:35.3764943Z Description : Run a PowerShell script within an Azure environment
2021-03-02T13:41:35.3765194Z Version : 4.182.0
2021-03-02T13:41:35.3765420Z Author : Microsoft Corporation
2021-03-02T13:41:35.3765702Z Help : https://aka.ms/azurepowershelltroubleshooting
2021-03-02T13:41:35.3766009Z ==============================================================================
2021-03-02T13:41:35.5523807Z ## Validating Inputs
2021-03-02T13:41:35.5560046Z ## Validating Inputs Complete
2021-03-02T13:41:35.5561308Z ## Initializing Az module
2021-03-02T13:41:35.5561743Z Generating script.
2021-03-02T13:41:35.5573469Z ## Az module initialization Complete
2021-03-02T13:41:35.5574105Z ## Beginning Script Execution
2021-03-02T13:41:35.5596810Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/1a47d51e-5e9b-4f56-a395-50f336fec843.ps1'
2021-03-02T13:41:35.5643173Z Saved!
2021-03-02T13:41:36.1895183Z �[91mException: �[0m/home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42
2021-03-02T13:41:36.1896285Z �[96mLine |
2021-03-02T13:41:36.1897322Z �[96m 42 | �[0m … �[96mthrow ("Could not find the module path with given version�[0m …
2021-03-02T13:41:36.1898197Z �[96m | �[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-03-02T13:41:36.1899029Z �[91m�[96m | �[91mCould not find the module path with given version.
2021-03-02T13:41:36.1900098Z �[0m
2021-03-02T13:41:36.2095043Z ##[error]PowerShell exited with code '1'.
2021-03-02T13:41:36.2451391Z ## Script Execution Complete
2021-03-02T13:41:36.2454579Z ##[section]Finishing: Deploy module [VirtualMachines] in [gh-tog-test] via [WVDServiceConnection]

custom image

Hi, when changing the custom image to use another language, and using this to deploy using the provided pipeline, the DSC deployment shows an error:

2020-09-28T09:17:57.2192573Z �[91mNew-AzResourceGroupDeployment: �[0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
2020-09-28T09:17:57.2193197Z �[96mLine |
2020-09-28T09:17:57.2193788Z �[96m 76 | �[0m … eployment = �[96mNew-AzResourceGroupDeployment @DeploymentInputs -Resource�[0m …
2020-09-28T09:17:57.2201120Z �[96m | �[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-09-28T09:17:57.2202011Z �[91m�[96m | �[91m09:17:57 - Resource
2020-09-28T09:17:57.2202765Z �[96m | �[91mMicrosoft.Compute/virtualMachines/extensions
2020-09-28T09:17:57.2203525Z �[96m | �[91m'QS-WVD-VM001/windowsDsc' failed with message '{ "status":
2020-09-28T09:17:57.2204266Z �[96m | �[91m"Failed", "error": { "code":
2020-09-28T09:17:57.2205003Z �[96m | �[91m"ResourceDeploymentFailure", "message": "The resource
2020-09-28T09:17:57.2205784Z �[96m | �[91moperation completed with terminal provisioning state
2020-09-28T09:17:57.2206516Z �[96m | �[91m'Failed'.", "details": [ { "code":
2020-09-28T09:17:57.2207310Z �[96m | �[91m"VMExtensionProvisioningError", "message": "VM has
2020-09-28T09:17:57.2208076Z �[96m | �[91mreported a failure when processing extension 'windowsDsc'.
2020-09-28T09:17:57.2208821Z �[96m | �[91mError message: "DSC Configuration 'AddSessionHost' completed
2020-09-28T09:17:57.2209605Z �[96m | �[91mwith error(s). Following are the first few: Importing module
2020-09-28T09:17:57.2210346Z �[96m | �[91mMSFT_ScriptResource failed with error - Cannot find the
2020-09-28T09:17:57.2211092Z �[96m | �[91mWindows PowerShell data file 'MSFT_ScriptResourceStrings.psd1'
2020-09-28T09:17:57.2211698Z �[96m | �[91min directory
2020-09-28T09:17:57.2213117Z �[96m | �[91m'C:\windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\DscResources\MSFT_ScriptResource\nl-NL\', or in any parent culture directories."\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot " } ] } }'
2020-09-28T09:17:57.2214188Z �[0m
2020-09-28T09:17:57.2352018Z ##[error]PowerShell exited with code '1'.
2020-09-28T09:17:57.2367156Z ## Script Execution Complete
2020-09-28T09:17:57.2369628Z ##[section]Finishing: Deploy module [VirtualMachines] in [rg-WVD-CUR] via [WVDServiceConnection]

Password Error in VM Custom Script Extension

I have an error in the pipeline during 'WVD_DeploySessionHosts' on the step 'Deploy module [VirtualMachines]'. The error seems to stem from the fact that my password begins with a ')' character. The password is logged in plain text.

[3784+00000001] [10/26/2020 19:12:20.65] [ERROR] Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'At line:1 char:95

Unexpected token ')' in expression or statement.
At line:1 char:128

  • ... ch.com -Azu...' For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell)
    [3784+00000001] [10/26/2020 19:12:20.67] [INFO] {"sequenceNumber":1,"totalDuration":92072,"status":"error","code":1,"filesDownloaded":5,"durationOfFileDownload":90500,"statusFileAccessed":14,"operation":"enable","operationDuration":37,"operationResult":"success","operationSizeOfOutput":0,"operationSizeOfError":576}
    [3784+00000001] [10/26/2020 19:12:20.67] [INFO] Event processing is terminating...

WVDServiceConnection not autopopulating

To Fix:
You simply go to Project Settings --> Service Connections --> New Service Connection
Create a Service connection called WVDServiceConnection (I gave it full access to ARM for testing)

The pipeline is not valid. Job Process_input_parameters: Step Process_inputer_parameters_task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.,Job Deploy_wvdAssetsStorage: Step Deploy_StorageAccounts_Task input azureSubscription references service connection WVDServiceConnection which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz."

DevOps pipeline fails in Deploy_WVDSessionHosts > Deploy module [VirtualMachines] | Domain join error

I was trying to run the new deployment on empty subscription, i.e. NewSubAADDSSetup/deploy.json. Location EastUS.

The deployment in Azure succeeded. Then I went to the DevOps pipeline and saw that it failed at "Deploy_WVDSessionHosts > Deploy module [VirtualMachines]"

Raw error

2020-10-07T21:37:49.9981425Z �[91mNew-AzResourceGroupDeployment: �[0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
2020-10-07T21:37:49.9983090Z �[96mLine |
2020-10-07T21:37:49.9984258Z �[96m 76 | �[0m … eployment = �[96mNew-AzResourceGroupDeployment @DeploymentInputs -Resource�[0m …
2020-10-07T21:37:49.9985689Z �[96m | �[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-10-07T21:37:49.9986798Z �[91m�[96m | �[91m21:37:49 - Resource
2020-10-07T21:37:49.9987840Z �[96m | �[91mMicrosoft.Compute/virtualMachines/extensions
2020-10-07T21:37:49.9989013Z �[96m | �[91m'QS-WVD-VM001/DomainJoin' failed with message '{ "status":
2020-10-07T21:37:49.9990133Z �[96m | �[91m"Failed", "error": { "code":
2020-10-07T21:37:49.9991308Z �[96m | �[91m"ResourceDeploymentFailure", "message": "The resource
2020-10-07T21:37:49.9992460Z �[96m | �[91moperation completed with terminal provisioning state
2020-10-07T21:37:49.9993624Z �[96m | �[91m'Failed'.", "details": [ { "code":
2020-10-07T21:37:49.9994853Z �[96m | �[91m"VMExtensionProvisioningError", "message": "VM has
2020-10-07T21:37:49.9996269Z �[96m | �[91mreported a failure when processing extension 'DomainJoin'.
2020-10-07T21:37:49.9998122Z �[96m | �[91mError message: "Exception(s) occured while joining Domain
2020-10-07T21:37:49.9999498Z �[96m | �[91m'e20wvddemoUS.onmicrosoft.com'"\r\n\r\nMore information on
2020-10-07T21:37:50.0000552Z �[96m | �[91mtroubleshooting is available at
2020-10-07T21:37:50.0001654Z �[96m | �[91mhttps://aka.ms/vmextensionwindowstroubleshoot " } ]
2020-10-07T21:37:50.0002626Z �[96m | �[91m} }'
2020-10-07T21:37:50.0003362Z �[0m
2020-10-07T21:37:50.0190913Z ##[error]PowerShell exited with code '1'.

What I have also found -

  • While the Azure deployment succeeded, there are some errors in the runbook errors tab.

inputValidationRunbook

New-AzureADUser : Error occurred while executing NewUser Code: Request_BadRequest Message: The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your organization. RequestId: 80efa1e5-afe1-4879-9d6b-3342d5ca8ecd DateTimeStamp: Wed, 07 Oct 2020 19:56:35 GMT Details: PropertyName - userPrincipalName, PropertyErrorCode - InvalidValue HttpStatusCode: BadRequest HttpStatusDescription: Bad Request HttpResponseStatus: Completed At line:136 char:1 + New-AzureADUser -DisplayName $username -PasswordProfile $PasswordProf ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-AzureADUser], ApiException + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewUser

I have validated the input and the "Azure Admin Upn" was provided in the [email protected]. The deployment is trying to use ADDS only (it's a POC).

Four subsequent errors which seem related. In Azure AD, there are no new users added.

devOpsSetupRunbook

New-AzureADUser : Error occurred while executing NewUser Code: Request_BadRequest Message: The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your organization. RequestId: 009ffdab-d6a1-42ab-8762-a778b811b15a DateTimeStamp: Wed, 07 Oct 2020 21:19:27 GMT Details: PropertyName - userPrincipalName, PropertyErrorCode - InvalidValue HttpStatusCode: BadRequest HttpStatusDescription: Bad Request HttpResponseStatus: Completed At line:101 char:1 + New-AzureADUser -DisplayName $adminUsername -PasswordProfile $Passwor ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-AzureADUser], ApiException + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewUser

New-AzADUser : The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your organization. At line:260 char:33 + ... eateUser) { New-AzADUser -UserPrincipalName $upn -DisplayName "$userN ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [New-AzADUser], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.NewAzureADUserCommand

Total 8 errors but these seemed significant.

Any clues where to look next or what else we can try? I have tried several times on this subscription before but cleaned up after each times as per the recommended steps. Those attempts did not fully succeed but I was trying to deploy my forked repo. This was based on this (primary) repo. Not sure if that has any impact.

Deploy module [VirtualMachines] Cannot validate argument on parameter 'Name'

Tried with empty subscription

2021-03-08T22:34:04.2840222Z �[96mLine |
2021-03-08T22:34:04.2841393Z �[96m 54 | �[0m � = (Get-AzStorageAccountKey -AccountName �[96m$storageAccount.Name�[0m -Resour �
2021-03-08T22:34:04.2842941Z �[96m | �[91m ~~~~~~~~~~~~~~~~~~~~
2021-03-08T22:34:04.2844002Z �[91m�[96m | �[91mCannot validate argument on parameter 'Name'. The argument is
2021-03-08T22:34:04.2845054Z �[96m | �[91mnull or empty. Provide an argument that is not null or empty,
2021-03-08T22:34:04.2846320Z �[96m | �[91mand then try the command again.
2021-03-08T22:34:04.2846935Z �[0m
2021-03-08T22:34:04.3194718Z ##[error]PowerShell exited with code '1'.
2021-03-08T22:34:04.3213140Z ## Script Execution Complete

Invoke-GeneralDeployment.ps1:76

When running Empty Subscription it fails 100% at this step.

Issue:
Performing the operation "Creating Deployment" on target "WVDDEMO".
New-AzResourceGroupDeployment: �[0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
Line 76 | New-AzResourceGroupDeployment @DeploymentInputs -Resource
Error: Code=InvalidTemplateDeployment; Message=The template deployment failed with error: 'Authorization failed for template resource 'profiles1005t101022z/default/wvdprofiles/Microsoft.Authorization/65d15962-70b1-5e79-9a0d-47e9cad494fa' of type 'Microsoft.Storage/storageAccounts/fileServices/fileshares/providers/roleAssignments'. The client 'SERVICEACCOUNT' with object id 'SERVICEACCOUNT' does not have permission to perform action 'Microsoft.Authorization/roleAssignments/write' at scope '/subscriptions/WVDSUBSCRIPTION/resourceGroups/WVDDEMO/providers/Microsoft.Storage/storageAccounts/profiles1005t101022z/fileServices/default/fileshares/wvdprofiles/providers/Microsoft.Authorization/roleAssignments/65d15962-70b1-5e79-9a0d-47e9cad494fa'.'.
[error]PowerShell exited with code '1'.
Script Execution Complete

Fix:
Remove anything that has to do with New-AzManagementGroupDeployment or ManagementGroupID. It is not created and if it was created, it should have a parameter. As it will fail each time.

Deploy module [VirtualMachines] in [WVD2] via [WVD2

I have the following error when it get's to the WindowsCustomScriptExtension. Can anyone help me? I have not edited the code in anyway so not sure why this is not working.

2020-10-06T16:08:09.3629414Z �[91mNew-AzResourceGroupDeployment: �[0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76
2020-10-06T16:08:09.3631059Z �[96mLine |
2020-10-06T16:08:09.3632064Z �[96m 76 | �[0m … eployment = �[96mNew-AzResourceGroupDeployment @DeploymentInputs -Resource�[0m …
2020-10-06T16:08:09.3633055Z �[96m | �[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-10-06T16:08:09.3634035Z �[91m�[96m | �[91m16:08:09 - Resource
2020-10-06T16:08:09.3634893Z �[96m | �[91mMicrosoft.Compute/virtualMachines/extensions
2020-10-06T16:08:09.3635766Z �[96m | �[91m'QS-WVD-VM001/WindowsCustomScriptExtension' failed with
2020-10-06T16:08:09.3636713Z �[96m | �[91mmessage '{ "status": "Failed", "error": { "code":
2020-10-06T16:08:09.3637782Z �[96m | �[91m"ResourceDeploymentFailure", "message": "The resource
2020-10-06T16:08:09.3638709Z �[96m | �[91moperation completed with terminal provisioning state
2020-10-06T16:08:09.3639608Z �[96m | �[91m'Failed'.", "details": [ { "code":
2020-10-06T16:08:09.3641835Z �[96m | �[91m"VMExtensionProvisioningError", "message": "VM has
2020-10-06T16:08:09.3660229Z �[96m | �[91mreported a failure when processing extension
2020-10-06T16:08:09.3660838Z �[96m | �[91m'WindowsCustomScriptExtension'. Error message: "Command
2020-10-06T16:08:09.3663656Z �[96m | �[91mexecution finished, but failed because it returned a non-zero
2020-10-06T16:08:09.3664292Z �[96m | �[91mexit code of: '1'. The command had an error output of:
2020-10-06T16:08:09.3664879Z �[96m | �[91m'Missing closing '}' in statement block or type
2020-10-06T16:08:09.3665471Z �[96m | �[91mdefinition.\r\n + CategoryInfo : ParserError: (:)
2020-10-06T16:08:09.3666082Z �[96m | �[91m[], ParentContainsErrorRecordException\r\n +
2020-10-06T16:08:09.3666617Z �[96m | �[91mFullyQualifiedErrorId : MissingEndCurlyBrace\r\n
2020-10-06T16:08:09.3667184Z �[96m | �[91m\r\n'"\r\n\r\nMore information on troubleshooting is
2020-10-06T16:08:09.3667768Z �[96m | �[91mavailable at https://aka.ms/VMExtensionCSEWindowsTroubleshoot
2020-10-06T16:08:09.3668276Z �[96m | �[91m" } ] } }'
2020-10-06T16:08:09.3668955Z �[0m
2020-10-06T16:08:09.3845855Z ##[error]PowerShell exited with code '1'.

DeploymentFailed

I am following the instructions in the video but I'm running into this deployment error:

{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'."\r\n }\r\n}"
}
]
}

image

image

Code:InvalidTemplate

Hi there,
When deploying a template, I am getting an error of (Code:InvalidTemplate) as you can see below,

Any thoughts on this?

Error type
Deployment template validation failed: 'The template resource '/userCreation' for type 'Microsoft.Compute/virtualMachines/extensions' at line '1' and column '857' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'. (Code: InvalidTemplate)

Regards,

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.