Skip to content

Commit

Permalink
update subid
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainFanZzz committed Apr 22, 2022
1 parent b102884 commit a333c69
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
5 changes: 2 additions & 3 deletions src/Resources/Resources/help/Get-AzTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ Using the *Detailed* parameter is the equivalent of using the *Name* parameter f
### Example 4: Get the entire set of tags on a subscription

```powershell
Get-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx
```
Get-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
```output
Id : {Id}
Expand All @@ -134,7 +133,7 @@ This command gets the entire set of tags on the subscription with {subId}.
### Example 5: Get the entire set of tags on a resource

```powershell
Get-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1
Get-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1
```

```output
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/Resources/help/Invoke-AzResourceAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ To get a list of supported actions, use the Azure Resource Explorer tool.
### Example 1: Invoke starting a VM with ResourceId

```powershell
Invoke-AzResourceAction -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testVM -Action start
Invoke-AzResourceAction -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testVM -Action start
```

```output
Confirm
Are you sure you want to invoke the 'start' action on the following resource: /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testVM
Are you sure you want to invoke the 'start' action on the following resource: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testVM
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
```

Expand All @@ -68,11 +68,11 @@ The command specifies the *Force* parameter, therefore, it does not prompt you f
### Example 3: Invoke registering a resource provider with ResourceId

```powershell
Invoke-AzResourceAction -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/providers/Microsoft.Network -action register -Force
Invoke-AzResourceAction -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Network -action register -Force
```

```output
id : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/providers/Microsoft.Network
id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Network
namespace : Microsoft.Network
authorizations : {…}
resourceTypes : {@{resourceType=virtualNetworks; locations=System.Object[]; apiVersions=System.Object[]},
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Resources/help/New-AzTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ The commands in this example create and use a predefined tag.

```powershell
$Tags = @{"tagKey1"="tagValue1"; "tagKey2"="tagValue2"}
New-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx -Tag $Tags
New-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Tag $Tags
```

```output
Expand All @@ -183,7 +183,7 @@ This command creates or updates the entire set of tags on the subscription with

```powershell
$Tags = @{"Dept"="Finance"; "Status"="Normal"}
New-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1 -Tag $Tags
New-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1 -Tag $Tags
```

```output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The **Remove-AzResourceGroupDeployment** cmdlet removes an Azure resource group
### Example 1: Removes a resource group deployment with ResourceId

```powershell
Remove-AzResourceGroupDeployment -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/testGroup/providers/Microsoft.Resources/deployments/testDeployment1
Remove-AzResourceGroupDeployment -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testGroup/providers/Microsoft.Resources/deployments/testDeployment1
```

```output
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Resources/help/Remove-AzTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ If the value has been applied to any resources or resource groups, the command f
### Example 3: Deletes the entire set of tags on a subscription

```powershell
Remove-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx
Remove-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
```

This command deletes the entire set of tags on the subscription with {subId}. It will not return the object deleted if not passing in "-PassThru".

### Example 4: Deletes the entire set of tags on a resource

```powershell
Remove-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1 -PassThru
Remove-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/testrg/providers/Microsoft.Sql/servers/Server1 -PassThru
```

```output
Expand Down
12 changes: 6 additions & 6 deletions src/Resources/Resources/help/Update-AzTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This operation allows replacing, merging or selectively deleting tags on the spe

```powershell
$mergedTags = @{"key1"="value1"; "key3"="value3";}
Update-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx -Tag $mergedTags -Operation Merge
Update-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Tag $mergedTags -Operation Merge
```

```output
Expand All @@ -45,13 +45,13 @@ Properties :
key3 value3
```

This command Merges the set of tags on the subscription with "xxxx-xxxx-xxxx-xxxx-xxxx".
This command Merges the set of tags on the subscription with "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".

### Example 2: Selectively updates the set of tags on a subscription with "Replace" Operation

```powershell
$replacedTags = @{"key1"="value1"; "key3"="value3";}
Update-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx -Tag $replacedTags -Operation Replace
Update-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Tag $replacedTags -Operation Replace
```

```output
Expand All @@ -65,13 +65,13 @@ Properties :
key3 value3
```

This command Replaces the set of tags on the subscription with "xxxx-xxxx-xxxx-xxxx-xxxx".
This command Replaces the set of tags on the subscription with "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".

### Example 3: Selectively updates the set of tags on a subscription with "Delete" Operation

```powershell
$deletedTags = @{"key1"="value1"}
Update-AzTag -ResourceId /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx -Tag $deletedTags -Operation Delete
Update-AzTag -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Tag $deletedTags -Operation Delete
```

```output
Expand All @@ -84,7 +84,7 @@ Properties :
key3 value3
```

This command Deletes the set of tags on the subscription with "xxxx-xxxx-xxxx-xxxx-xxxx".
This command Deletes the set of tags on the subscription with "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".

## PARAMETERS

Expand Down

0 comments on commit a333c69

Please sign in to comment.