File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2020
2121## Upcoming Release  
2222*  Introduced NetworkAclBypass and NetworkAclBypassResourceIds for Database Account cmdlets.
23- *  Introduced ServerVersion option  to Update-AzCosmosDBAccount.
23+ *  Introduced ServerVersion parameter  to Update-AzCosmosDBAccount.
2424*  Introduced BackupInterval and BackupRetention for Database Account cmdlets
2525
2626## Version 1.0.0  
Original file line number Diff line number Diff line change @@ -213,14 +213,14 @@ public override void ExecuteCmdlet()
213213
214214            if  ( BackupIntervalInMinutes . HasValue  ||  BackupRetentionIntervalInHours . HasValue ) 
215215            { 
216-                 PSBackupPolicy   backupPolicy   =  new  PSBackupPolicy ( ) 
216+                 databaseAccountCreateUpdateParameters . BackupPolicy   =  new  PeriodicModeBackupPolicy ( ) 
217217                { 
218-                     BackupType  =  PSBackupPolicy . PeriodicModeBackupType , 
219-                     BackupIntervalInMinutes  =  BackupIntervalInMinutes , 
220-                     BackupRetentionIntervalInHours  =  BackupRetentionIntervalInHours 
218+                     PeriodicModeProperties  =  new  PeriodicModeProperties ( ) 
219+                     { 
220+                         BackupIntervalInMinutes  =  BackupIntervalInMinutes , 
221+                         BackupRetentionIntervalInHours  =  BackupRetentionIntervalInHours 
222+                     } 
221223                } ; 
222- 
223-                 databaseAccountCreateUpdateParameters . BackupPolicy  =  backupPolicy . ToSDKModel ( ) ; 
224224            } 
225225
226226            if  ( ShouldProcess ( Name ,  "Creating Database Account" ) ) 
Original file line number Diff line number Diff line change @@ -160,14 +160,14 @@ public override void ExecuteCmdlet()
160160            { 
161161                if  ( readDatabase . BackupPolicy  is  PeriodicModeBackupPolicy ) 
162162                { 
163-                     PSBackupPolicy   backupPolicy   =  new  PSBackupPolicy ( ) 
163+                     databaseAccountUpdateParameters . BackupPolicy   =  new  PeriodicModeBackupPolicy ( ) 
164164                    { 
165-                         BackupType  =  PSBackupPolicy . PeriodicModeBackupType , 
166-                         BackupIntervalInMinutes  =  BackupIntervalInMinutes , 
167-                         BackupRetentionIntervalInHours  =  BackupRetentionIntervalInHours 
165+                         PeriodicModeProperties  =  new  PeriodicModeProperties ( ) 
166+                         { 
167+                             BackupIntervalInMinutes  =  BackupIntervalInMinutes , 
168+                             BackupRetentionIntervalInHours  =  BackupRetentionIntervalInHours 
169+                         } 
168170                    } ; 
169- 
170-                     databaseAccountUpdateParameters . BackupPolicy  =  backupPolicy . ToSDKModel ( ) ; 
171171                } 
172172                else 
173173                { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments