question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should exclude storageProfile on VMSS update command request

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

When a VMSS is created using Shared Image Gallery image from a different tenant, any VMSS update operation like az vmss update or az vmss extension add will fail at ARM linked access check. This is because the client CLI use won’t have permission in the SIG tenant.

The error message you see will be:

The client has permission to perform action 'Microsoft.Compute/galleries/images/versions/read' on scope '{VMSS or VM resource ID}', 
however the current tenant '{customer tenant ID}' is not authorized to access linked subscription '109a5e88-712a-48ae-9078-9ca8b3c81345'.

AKS recently rolled out a change to subset of customers to pilot using SIG image and discovered this issue.

To Reproduce

Create an AKS cluster in Australia / Canada region, in the node resource group (named MC_xxx) there will be a VMSS using SIG image. Try do any az vmss update operation on it, or on the VM instance.

Expected behavior

VMSS update should succeed.

In order to make this scenario work, the update request body should only contain the relevant property changes (not the full VMSS properties body), or at least remove property “properties.virtualMachineProfile.storageProfile”.

Environment summary

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
yungezzcommented, Sep 16, 2020

currently PR in CLI side, while blocked by a VMSS service issue. When service deployment done, will merge CLI side change.

0reactions
qwordycommented, Sep 7, 2020

Thank you for reporting it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify an Azure Virtual Machine Scale Set - Microsoft Learn
Learn how to modify and update an Azure Virtual Machine Scale Set with the REST APIs, Azure PowerShell, and Azure CLI.
Read more >
Updating Azure VM Scale Set without downtime with Rolling ...
Associating the probe to the VMSS. Execute the following command to associate the probe with the VMSS: az vmss update --name <vmss-name> --resource-group ......
Read more >
Azure Virtual Machine Scale Set with Custom Image
With individual VMs, you must orchestrate updates yourself. ... Run below PowerShell command to make generalized image of VM.
Read more >
Azure virtual machine scale sets and Workload Security
You can set up your VMSS to include a base VM image that has the agent pre-installed and pre-activated. As the VMSS scales...
Read more >
azure-cli 2.1.0 - PyPI
Remove preview tag for most commands excluding managed identity and ... vm/vmss/availability-set update: add –ppg to allowing updating ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found