azure-powershell
azure-powershell copied to clipboard
Microsoft.RecoveryServices/vaults/backupPolicies powershell timezone issue in Azure Portal
Description
Script/Steps for Reproduction
I am trying to create a new policy via powershell based off an existing policy already in a recovery vault.
When I do so, I use New-AzureRmRecoveryServicesBackupProtectionPolicy.
This command successfully creates a new policy. However, when creating the policy it does not copy the timezone.
To be more explicit, here is a run through. As a result of this run through, you will see that the time zone is not copied.
This policy "PCI" was created through the portal
Module Version
Script 4.1.8 AzureRM.RecoveryServices {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryServicesVaultSettingsFile, New-Azur...
Script 4.4.1 AzureRM.RecoveryServices.Backup {Backup-AzureRmRecoveryServicesBackupItem, Disable-AzureRmRecoveryServicesBackupProtection, Disable-AzureRmRecoveryServicesBackupRPM...
Script 0.2.10 AzureRM.RecoveryServices.SiteRec... {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryServicesAsrAlertSetting, Get-AzureRmRecoveryServicesAsrEvent, Get-A...
Environment Data
Name Value
---- -----
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Debug Output
no bugs of interest as this may be strictly a portal issue
It appears that the new policy is UTC. The issue must be the frontend portal updating the timezone type as it is in the actual object

@dragonfly91 Can you take a look at this issue?
A fix has been initiated : https://github.com/Azure/azure-powershell/pull/7788
fix is given for this issue. Closing it.