Skip to content

Commit 687a003

Browse files
Merge pull request #10530 from ryanberg-aquent/CI-7775a
AB#7775a: [SupportArticles-docs] PR#1944 - Open Update removing-extensions-netapp-cvo.md - update with new PR
2 parents 69cb86c + ae6e8a5 commit 687a003

1 file changed

Lines changed: 26 additions & 11 deletions

File tree

support/azure/virtual-machines/linux/removing-extensions-netapp-cvo.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,34 @@ Cloud Volumes ONTAP doesn't support Azure VM extensions because extensions affec
4343
> Starting in BlueXP 3.9.54, NetApp enforces this pre-existing limitation as a notification in BlueXP.
4444
4545
## Resolution
46-
To resolve this issue, run the following script against any affected NetApp CVO VMs in PowerShell:
46+
To resolve this issue, run the following script against any affected NetApp CVO VMs.
47+
48+
### [PowerShell](#tab/powershell)
4749

4850
```powershell
49-
$subscriptionId = (Get-AzContext).Subscription.Id
50-
$resourceGroup = "RGname"
51-
$vmName = "VMName"
52-
$apiVersion = "2025-04-01"
53-
$uri = "https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.Compute/virtualMachines/${vmName}?api-version=${apiVersion}"
54-
$response = Invoke-AzRestMethod -Method GET -Uri $uri
55-
$vmModel = $response.Content | ConvertFrom-Json
56-
$vmModel.resources = @()
57-
$body = $vmModel | ConvertTo-Json -Depth 10 -Compress
58-
Invoke-AzRestMethod -Method PUT -Uri $uri -Payload $body
51+
$subscriptionId = (Get-AzContext).Subscription.Id
52+
$resourceGroup = "RGname"
53+
$vmName = "VMName"
54+
$apiVersion = "2025-04-01"
55+
$uri = "https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.Compute/virtualMachines/${vmName}?api-version=${apiVersion}"
56+
$response = Invoke-AzRestMethod -Method GET -Uri $uri
57+
$vmModel = $response.Content | ConvertFrom-Json
58+
$vmModel.resources = @()
59+
$body = $vmModel | ConvertTo-Json -Depth 10 -Compress
60+
Invoke-AzRestMethod -Method PUT -Uri $uri -Payload $body
61+
```
62+
63+
### [CLI](#tab/cli)
64+
65+
```cmd
66+
subscriptionId=$(az account show --query id -o tsv)
67+
resourceGroup="RGName"
68+
vmName="VMName"
69+
apiVersion="2025-04-01"
70+
uri="https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.Compute/virtualMachines/${vmName}?api-version=${apiVersion}"
71+
response=$(az rest --method get --uri "$uri")
72+
vmModel=$(echo "$response" | jq '.resources = []')
73+
az rest --method put --uri "$uri" --body "$vmModel"
5974
```
6075

6176
> [!NOTE]

0 commit comments

Comments
 (0)