Skip to content

Commit 17ba968

Browse files
authored
Update Azure PowerShell cmdlet
Existing example still mentioned AzureRm PowerShell module (Get-AzureRmContext). Update to new Az PowerShell module cmdlet
1 parent c87b8d2 commit 17ba968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-netapp-files/develop-rest-api-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The REST API specification for Azure NetApp Files is published through [GitHub](
7979
5. Send a test call and include the token to validate your access to the REST API:
8080
8181
```azurepowershell
82-
$SubId = (Get-AzureRmContext).Subscription.Id
82+
$SubId = (Get-AzContext).Subscription.Id
8383
Invoke-RestMethod -Method Get -Headers $headers -Uri https://management.azure.com/subscriptions/$SubId/providers/Microsoft.Web/sites?api-version=2019-11-01
8484
```
8585
@@ -432,4 +432,4 @@ This section shows sample scripts for PowerShell.
432432

433433
## Next steps
434434

435-
[See the Azure NetApp Files REST API reference](/rest/api/netapp/)
435+
[See the Azure NetApp Files REST API reference](/rest/api/netapp/)

0 commit comments

Comments
 (0)