Azure / Azure/azure-quickstart-templates

Deploying linked templates from VS Code with Deploy-AzTemplate.ps1

Open
#7,905 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

Hi,

Is there a way to deploy my linked templates through visual studio code?

When I execute [Deploy-AzTemplate.ps1](https://github.com/Azure/azure-quickstart-templates/blob/master/Deploy-AzTemplate.ps1) from VS Code.

The storage account gets created and the files are uploaded the first time and the delpoyment fails on the stagingartifact. But now the scripts fails with:

Get-AzStorageAccount: C:\Users\...\Deploy-AzAzureRG2.ps1:116:24
Line |
116 | $StorageAccount = (Get-AzStorageAccount | Where-Object { $_.Stora …
| ~~~~~~~~~~~~~~~~~~~~
| The access token expiry UTC time '8/5/2020 10:22:06 AM' is earlier than current UTC time '8/5/2020 10:42:00 AM'.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with Deploy-AzTemplate.ps1 and the generated Deploy-AzAzureRG2.ps1 around line 116. Reproduce the linked-template deployment from VS Code, focusing on the stagingartifact failure and the expired access-token error after the initial upload. Done means the linked templates deploy successfully without this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell, vscode
Domain
cloud, devops, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.