Create a snapshot of the managed disk using the New-AzSnapshot cmdlet. For example:
$<span class=" active-doc-0" data-doc-items="0">snapshot = New-AzSnapshot -SnapshotName "mySnapshot" -SourceUri $disk.Id -ResourceGroupName "myResourceGroup[1](#doc-pos=0)</span>"
Add tags to the snapshot using the Set-AzSnapshot cmdlet1. For example:
$tags = @{
"Environment" = "Production"
"Application" = "MyApp"
}
Set-AzSnapshot -Snapshot $snapshot -Tags $tags
This will add two tags to the snapshot: "Environment" with a value of "Production" and "Application" with a value of "MyApp".
Please note that the specific commands you need to use may vary depending on your environment and requirements. If you continue to have issues, please provide more information about the specific error messages you are seeing and the commands you are using.
This article gives idea, how to Apply tags with Azure PowerShell
Apply tags with Azure PowerShell
Reference link : New-AzSnapshot
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.