Azure IaaS
7 TopicsAzure Virtual Desktop deployment error: resource write operation failed to complete successfully
I have tried to deploy Azure Virtual Desktop several times and it has failed every time, with the same error message: "write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'." Details: "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'. (Code: ResourceDeploymentFailure, Target: /subscriptions/b38d7f27-415a-4877-a594-ff5e4877c8d3/resourceGroups/AVD-Resource-Group-Prefix-deployment/providers/Microsoft.Resources/deployments/easy-button-inputvalidation-job-linked-template)" I've tried using my work/Microsoft 365 Account, and using two different personal accounts, I thought the issue could be billing related, but even when there is $200 in available credit in a new/trial account, it still happens. I've seen suggested elsewhere that this may be due to Azure Policy restrictions, but there are none, at least no non-default policies, and if the default policies restrict creation of Azure Virtual Desktop environments, that should be changed, and at minimum, users/admins should be informed if that is what is preventing them from being deployed, and be given the option to change them. The bottom line is that this is absurd that Azure Virtual Desktop fails by default for multiple accounts, and it needs to be fixed, even if my personal deployment issue can be resolved by jumping through hoops. Please, let me know what hoops I need to jump through to get this to work for now.22KViews1like6Commentserror - WARNING: The version '1.9.4' of module 'Az.Accounts' is currently in use. Powershell script
PS C:\Application01>Install-Module -Name Az -AllowClobber -Scope AllUsers PS C:\Application01>Connect-AzAccount ### this prompts me for my azure logon PS C:\Application01>Update-Module -Name Az PS C:\Application01>.\Publish-Application01.ps1 -action "Deploy" ` -azureAccountApplicationId "a3XXXXXXXXXXXXXXXXXXXXXXXX76" ` -azureAccountPassword "43XXXXXXXXXXXXXXXXXXXXXXXXXXXm" ` -package "C:\Application01\Application01.server.Web.zip" ` -azureSubscriptionId "c27XXXXXXXXXXXXXXXXXXXXXXXXX32" ` -azureAccountTenantId "41XXXXXXXXXXXXXXXXXXXXXXXXX1d" ` -hostAdminPassword "XXXXXXXXXXXX" ` -defaultTenantAdminPassword "XXXXXXXXXXX" ` -resourceGroupName "RG01" ` -appServiceName "Applicationservice01" ` -nugetRepositoryType "Composite" ` -storageType "Azure" ` -storageLocation "DefaultEndpointsProtocol=https://XXXXXXXXX" ` -appSettings @{"Telemetry.Enabled"="false"} ` -verbose WARNING: The version '1.9.4' of module 'Az.Accounts' is currently in use. Retry the operation after closing the applications. WARNING: The provided service principal secret will be included in the 'AzureRmContext.json' file found in the user profile ( C:\Users\zzadmin\.Azure ). Please ensure that this directory has appropriate protections. Connect-AzAccount : The provided account a3XXXXXXXXXXXXXXXXXXXX76 does not have access to subscription ID "c2XXXXXXXXXXXXXXXXXXXXXXXX2". Please try logging in with different credentials or a different subscription ID. At C:\Application01\Publish-Application01.ps1:577 char:9 + if (Connect-AzAccount -Environment AzureUSGovernment -ServicePrin ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Connect-AzAccount], PSInvalidOperationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand XXXXXXXXXXXXXXXXXX Line 577 >>> -ServicePrincipal -- my understanding is a prompt will appear to enter a value for ServicePrincipal. function AuthenticateToAzure { $securePassword = $azureAccountPassword | ConvertTo-SecureString -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential($azureAccountApplicationId, $securePassword) if (Connect-AzAccount -Environment AzureUSGovernment -ServicePrincipal -SubscriptionId $azureSubscriptionId -TenantId $azureAccountTenantId -Credential $credential){ Write-Host "Logged in to Az" -ForegroundColor Green } else { Write-Error "Failed to log in to Az" Exit 1 } XXXXXXXXXXXXXX I have tried rebooting the VM and error still appears. The zzadmin account on the VM is a local administrator.4.6KViews0likes0CommentsHow to get SQL Server Version on multiple Servers on Azure using Power shell.
I have 300 servers on azure, i have to find the details of SQL Server Version in all servers on Azure. how to do this using Power shell? (like i can put the name of the servers in a file and get the output in another file).1.9KViews0likes3CommentsFriday Five: Azure IaaS, Dynamics 365 and More!
First published on MSDN on Oct 26, 2018 How to use Azure Infrastructure-As-a-Service (IaaS) in the most cost effective way - top 10 - survival guideChristiaan Brinkhoff works as a Cloud Architect and Evangelist and owns his own independent consulting firm, where he focuses mainly on Public Cloud infrastructures and End-User Computing environments for the larger multinational enterprise customers for the EMEA and USA regions552Views0likes0CommentsList of resource on Azure
Hello everyone. Anyone have a script that export the resources from Azure to csv. I need the script that show this information: Name VM Resource group Backup Private ip Public IP Virtual Network Subnet Version of Operation System Disks / capacity of them / Letter of disk Type of VM Thank you for help Nuno Magalhaes628Views0likes0Comments