File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- ---
1+ ---
22external help file : Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
33Module Name : Az.Compute
44online version : https://docs.microsoft.com/en-us/powershell/module/az.compute/update-azimage
@@ -26,17 +26,17 @@ Currently, only the Tags can be updated.
2626### Example 1
2727```
2828PS C:\> $image = Get-AzImage -ResourceGroupName 'ResourceGroup01' -ImageName 'Image01'
29- PS C:\> $image.Tags = New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]";
30- PS C:\> $image.Tags.Add("key1", "val1");
31- PS C:\> Update-AzImage -ResourceGroupName 'ResourceGroup01' -ImageName 'Image01' -Image $image;
29+ PS C:\> $image.Tags = New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]"
30+ PS C:\> $image.Tags.Add("key1", "val1")
31+ PS C:\> Update-AzImage -ResourceGroupName 'ResourceGroup01' -ImageName 'Image01' -Image $image
3232```
3333
3434This command updates the Tag value of the existing image 'Image01' in the resource group 'ResourceGroup01'.
3535
3636## PARAMETERS
3737
3838### -AsJob
39- Run cmdlet in the background
39+ Run cmdlet in the background.
4040
4141``` yaml
4242Type : System.Management.Automation.SwitchParameter
You can’t perform that action at this time.
0 commit comments