diff --git a/swaggerci/recoveryservices/.gitattributes b/swaggerci/recoveryservices/.gitattributes
new file mode 100644
index 000000000000..2125666142eb
--- /dev/null
+++ b/swaggerci/recoveryservices/.gitattributes
@@ -0,0 +1 @@
+* text=auto
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/.gitignore b/swaggerci/recoveryservices/.gitignore
new file mode 100644
index 000000000000..7998f37e1e47
--- /dev/null
+++ b/swaggerci/recoveryservices/.gitignore
@@ -0,0 +1,5 @@
+bin
+obj
+.vs
+tools
+test/*-TestResults.xml
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/Az.RecoveryServices.csproj b/swaggerci/recoveryservices/Az.RecoveryServices.csproj
new file mode 100644
index 000000000000..622cce53d4f3
--- /dev/null
+++ b/swaggerci/recoveryservices/Az.RecoveryServices.csproj
@@ -0,0 +1,43 @@
+
+
+
+ 0.1.0
+ 7.1
+ netstandard2.0
+ Library
+ Az.RecoveryServices.private
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices
+ true
+ false
+ ./bin
+ $(OutputPath)
+ Az.RecoveryServices.nuspec
+ true
+
+ 1998
+ true
+
+
+
+
+ false
+ TRACE;DEBUG;NETSTANDARD
+
+
+
+ true
+ true
+ MSSharedLibKey.snk
+ TRACE;RELEASE;NETSTANDARD;SIGN
+
+
+
+
+
+
+
+
+ $(DefaultItemExcludes);resources/**
+
+
+
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/Az.RecoveryServices.format.ps1xml b/swaggerci/recoveryservices/Az.RecoveryServices.format.ps1xml
new file mode 100644
index 000000000000..00cf375d071e
--- /dev/null
+++ b/swaggerci/recoveryservices/Az.RecoveryServices.format.ps1xml
@@ -0,0 +1,1861 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.RecoveryServicesIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.RecoveryServicesIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CertificateName
+
+
+ Id
+
+
+ IdentityName
+
+
+ Location
+
+
+ OperationId
+
+
+ PrivateLinkResourceName
+
+
+ ResourceGroupName
+
+
+ SubscriptionId
+
+
+ VaultName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CheckNameAvailabilityParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CheckNameAvailabilityParameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CheckNameAvailabilityResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CheckNameAvailabilityResult
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Message
+
+
+ NameAvailable
+
+
+ Reason
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryDisplay
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryDisplay
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ Operation
+
+
+ Provider
+
+
+ Resource
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryForLogSpecification
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryForLogSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BlobDuration
+
+
+ DisplayName
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryResponse
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryResponse
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryValueForSingleApi
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ClientDiscoveryValueForSingleApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Origin
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CmkKekIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CmkKekIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UseSystemAssignedIdentity
+
+
+ UserAssignedIdentity
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CmkKeyVaultProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.CmkKeyVaultProperties
+
+
+
+
+
+
+
+
+
+
+
+ KeyUri
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Error
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ErrorAdditionalInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ErrorAdditionalInfo
+
+
+
+
+
+
+
+
+
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IdentityData
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IdentityData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PrincipalId
+
+
+ TenantId
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.JobsSummary
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.JobsSummary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ FailedJob
+
+
+ InProgressJob
+
+
+ SuspendedJob
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.MonitoringSummary
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.MonitoringSummary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DeprecatedProviderCount
+
+
+ EventsCount
+
+
+ SupportedProviderCount
+
+
+ UnHealthyProviderCount
+
+
+ UnHealthyVMCount
+
+
+ UnsupportedProviderCount
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.NameInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.NameInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ LocalizedValue
+
+
+ Value
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.OperationResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.OperationResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndTime
+
+
+ Id
+
+
+ Name
+
+
+ StartTime
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchTrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchTrackedResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchTrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchTrackedResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchVault
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PatchVault
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Location
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpoint
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpoint
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpointConnection
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpointConnection
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpointConnectionVaultProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateEndpointConnectionVaultProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Location
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ GroupId
+
+
+ RequiredMember
+
+
+ RequiredZoneName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResources
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkResources
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkServiceConnectionState
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.PrivateLinkServiceConnectionState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ActionsRequired
+
+
+ Description
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.RawCertificateData
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.RawCertificateData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AuthType
+
+
+ Certificate
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ReplicationUsage
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ReplicationUsage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProtectedItemCount
+
+
+ RecoveryPlanCount
+
+
+ RecoveryServicesProviderAuthType
+
+
+ RegisteredServersCount
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateAndAadDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateAndAadDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AuthType
+
+
+ Certificate
+
+
+ FriendlyName
+
+
+ Issuer
+
+
+ ResourceId
+
+
+ Subject
+
+
+ Thumbprint
+
+
+ ValidFrom
+
+
+ ValidTo
+
+
+ AadAuthority
+
+
+ AadTenantId
+
+
+ AzureManagementEndpointAudience
+
+
+ ServicePrincipalClientId
+
+
+ ServicePrincipalObjectId
+
+
+ ServiceResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateAndAcsDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateAndAcsDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AuthType
+
+
+ Certificate
+
+
+ FriendlyName
+
+
+ Issuer
+
+
+ ResourceId
+
+
+ Subject
+
+
+ Thumbprint
+
+
+ ValidFrom
+
+
+ ValidTo
+
+
+ GlobalAcsHostName
+
+
+ GlobalAcsNamespace
+
+
+ GlobalAcsRpRealm
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ResourceCertificateDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AuthType
+
+
+ Certificate
+
+
+ FriendlyName
+
+
+ Issuer
+
+
+ ResourceId
+
+
+ Subject
+
+
+ Thumbprint
+
+
+ ValidFrom
+
+
+ ValidTo
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Sku
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Sku
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Capacity
+
+
+ Family
+
+
+ Name
+
+
+ Size
+
+
+ Tier
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.SystemData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.TrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.TrackedResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.TrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.TrackedResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.UpgradeDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.UpgradeDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndTimeUtc
+
+
+ LastUpdatedTimeUtc
+
+
+ Message
+
+
+ OperationId
+
+
+ PreviousResourceId
+
+
+ StartTimeUtc
+
+
+ Status
+
+
+ TriggerType
+
+
+ UpgradedResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.UserIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.UserIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClientId
+
+
+ PrincipalId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Vault
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.Vault
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Location
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultCertificateResponse
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultCertificateResponse
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultExtendedInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultExtendedInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Algorithm
+
+
+ EncryptionKey
+
+
+ EncryptionKeyThumbprint
+
+
+ IntegrityKey
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultExtendedInfoResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultExtendedInfoResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Etag
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultList
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultList
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BackupStorageVersion
+
+
+ MoveState
+
+
+ PrivateEndpointStateForBackup
+
+
+ PrivateEndpointStateForSiteRecovery
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultPropertiesEncryption
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultPropertiesEncryption
+
+
+
+
+
+
+
+
+
+
+
+ InfrastructureEncryption
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultPropertiesMoveDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultPropertiesMoveDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CompletionTimeUtc
+
+
+ OperationId
+
+
+ SourceResourceId
+
+
+ StartTimeUtc
+
+
+ TargetResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultUsage
+
+ Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.VaultUsage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CurrentValue
+
+
+ Limit
+
+
+ NextResetTime
+
+
+ QuotaPeriod
+
+
+ Unit
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/Az.RecoveryServices.nuspec b/swaggerci/recoveryservices/Az.RecoveryServices.nuspec
new file mode 100644
index 000000000000..d3342c1bafdc
--- /dev/null
+++ b/swaggerci/recoveryservices/Az.RecoveryServices.nuspec
@@ -0,0 +1,32 @@
+
+
+
+ Az.RecoveryServices
+ 0.1.0
+ Microsoft Corporation
+ Microsoft Corporation
+ true
+ https://aka.ms/azps-license
+ https://github.com/Azure/azure-powershell
+ Microsoft Azure PowerShell: $(service-name) cmdlets
+
+ Microsoft Corporation. All rights reserved.
+ Azure ResourceManager ARM PSModule $(service-name)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/Az.RecoveryServices.psd1 b/swaggerci/recoveryservices/Az.RecoveryServices.psd1
new file mode 100644
index 000000000000..8ec9284648ed
--- /dev/null
+++ b/swaggerci/recoveryservices/Az.RecoveryServices.psd1
@@ -0,0 +1,24 @@
+@{
+ GUID = 'f2ce8b02-775d-4da9-9071-a5f1cc258cd9'
+ RootModule = './Az.RecoveryServices.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: RecoveryServices cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.RecoveryServices.private.dll'
+ FormatsToProcess = './Az.RecoveryServices.format.ps1xml'
+ FunctionsToExport = 'Get-AzRecoveryServicesOperationResult', 'Get-AzRecoveryServicesOperationStatus', 'Get-AzRecoveryServicesPrivateLinkResource', 'Get-AzRecoveryServicesReplicationUsage', 'Get-AzRecoveryServicesUsage', 'Get-AzRecoveryServicesVault', 'Get-AzRecoveryServicesVaultExtendedInfo', 'New-AzRecoveryServicesVault', 'New-AzRecoveryServicesVaultCertificate', 'New-AzRecoveryServicesVaultExtendedInfo', 'Remove-AzRecoveryServicesRegisteredIdentity', 'Remove-AzRecoveryServicesVault', 'Test-AzRecoveryServicesRecoveryServiceNameAvailability', 'Update-AzRecoveryServicesVault', 'Update-AzRecoveryServicesVaultExtendedInfo', '*'
+ AliasesToExport = '*'
+ PrivateData = @{
+ PSData = @{
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'RecoveryServices'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
+}
diff --git a/swaggerci/recoveryservices/Az.RecoveryServices.psm1 b/swaggerci/recoveryservices/Az.RecoveryServices.psm1
new file mode 100644
index 000000000000..064fdca70144
--- /dev/null
+++ b/swaggerci/recoveryservices/Az.RecoveryServices.psm1
@@ -0,0 +1,107 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ # Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated/modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.RecoveryServices.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
+
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.RecoveryServices.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/swaggerci/recoveryservices/MSSharedLibKey.snk b/swaggerci/recoveryservices/MSSharedLibKey.snk
new file mode 100644
index 000000000000..695f1b38774e
Binary files /dev/null and b/swaggerci/recoveryservices/MSSharedLibKey.snk differ
diff --git a/swaggerci/recoveryservices/README.md b/swaggerci/recoveryservices/README.md
new file mode 100644
index 000000000000..2588bb9b3656
--- /dev/null
+++ b/swaggerci/recoveryservices/README.md
@@ -0,0 +1,27 @@
+
+# Az.RecoveryServices
+This directory contains the PowerShell module for the RecoveryServices service.
+
+---
+## Status
+[](https://www.powershellgallery.com/packages/Az.RecoveryServices/)
+
+## Info
+- Modifiable: yes
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+---
+## Detail
+This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
+
+## Module Requirements
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
+
+## Authentication
+AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
+
+## Development
+For information on how to develop for `Az.RecoveryServices`, see [how-to.md](how-to.md).
+
diff --git a/swaggerci/recoveryservices/build-module.ps1 b/swaggerci/recoveryservices/build-module.ps1
new file mode 100644
index 000000000000..9b18406699d5
--- /dev/null
+++ b/swaggerci/recoveryservices/build-module.ps1
@@ -0,0 +1,153 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+$ErrorActionPreference = 'Stop'
+
+if($PSEdition -ne 'Core') {
+ Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
+}
+
+if(-not $Isolated -and -not $Debugger) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+
+ if($LastExitCode -ne 0) {
+ # Build failed. Don't attempt to run the module.
+ return
+ }
+
+ if($Test) {
+ . (Join-Path $PSScriptRoot 'test-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Tests failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Docs) {
+ . (Join-Path $PSScriptRoot 'generate-help.ps1')
+ if($LastExitCode -ne 0) {
+ # Docs generation failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Pack) {
+ . (Join-Path $PSScriptRoot 'pack-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Packing failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
+ if($Code) {
+ . $runModulePath -Code
+ } elseif($Run) {
+ . $runModulePath
+ } else {
+ Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
+ }
+ return
+}
+
+$binFolder = Join-Path $PSScriptRoot 'bin'
+$objFolder = Join-Path $PSScriptRoot 'obj'
+
+if(-not $Debugger) {
+ Write-Host -ForegroundColor Green 'Cleaning build folders...'
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
+
+ if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
+ Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
+ Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
+ }
+
+ Write-Host -ForegroundColor Green 'Compiling module...'
+ $buildConfig = 'Debug'
+ if($Release) {
+ $buildConfig = 'Release'
+ }
+ dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
+ if($LastExitCode -ne 0) {
+ Write-Error 'Compilation failed.'
+ }
+
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
+}
+
+$dll = Join-Path $PSScriptRoot 'bin/Az.RecoveryServices.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+
+# Load DLL to use build-time cmdlets
+$null = Import-Module -Name $dll
+
+$modulePaths = $dll
+$customPsm1 = Join-Path $PSScriptRoot 'custom/Az.RecoveryServices.custom.psm1'
+if(Test-Path $customPsm1) {
+ $modulePaths = @($dll, $customPsm1)
+}
+
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+if(Test-Path $exportsFolder) {
+ $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $exportsFolder
+
+$internalFolder = Join-Path $PSScriptRoot 'internal'
+if(Test-Path $internalFolder) {
+ $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $internalFolder
+
+$psd1 = Join-Path $PSScriptRoot './Az.RecoveryServices.psd1'
+$guid = Get-ModuleGuid -Psd1Path $psd1
+$moduleName = 'Az.RecoveryServices'
+$examplesFolder = Join-Path $PSScriptRoot 'examples'
+$null = New-Item -ItemType Directory -Force -Path $examplesFolder
+
+Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
+$modelCmdlets = @()
+if ($modelCmdlets.Count -gt 0) {
+ . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
+ CreateModelCmdlet($modelCmdlets)
+}
+
+if($NoDocs) {
+ Write-Host -ForegroundColor Green 'Creating exports...'
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
+} else {
+ Write-Host -ForegroundColor Green 'Creating exports and docs...'
+ $moduleDescription = 'Microsoft Azure PowerShell: RecoveryServices cmdlets'
+ $docsFolder = Join-Path $PSScriptRoot 'docs'
+ if(Test-Path $docsFolder) {
+ $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+ }
+ $null = New-Item -ItemType Directory -Force -Path $docsFolder
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+}
+
+Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.RecoveryServices.format.ps1xml'
+Export-FormatPs1xml -FilePath $formatPs1xml
+
+Write-Host -ForegroundColor Green 'Creating psd1...'
+$customFolder = Join-Path $PSScriptRoot 'custom'
+Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
+
+Write-Host -ForegroundColor Green 'Creating test stubs...'
+$testFolder = Join-Path $PSScriptRoot 'test'
+$null = New-Item -ItemType Directory -Force -Path $testFolder
+Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
+
+Write-Host -ForegroundColor Green 'Creating example stubs...'
+Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/swaggerci/recoveryservices/check-dependencies.ps1 b/swaggerci/recoveryservices/check-dependencies.ps1
new file mode 100644
index 000000000000..7400c6e1be47
--- /dev/null
+++ b/swaggerci/recoveryservices/check-dependencies.ps1
@@ -0,0 +1,57 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated/modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/swaggerci/recoveryservices/create-model-cmdlets.ps1 b/swaggerci/recoveryservices/create-model-cmdlets.ps1
new file mode 100644
index 000000000000..1757100df314
--- /dev/null
+++ b/swaggerci/recoveryservices/create-model-cmdlets.ps1
@@ -0,0 +1,163 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+
+function CreateModelCmdlet {
+
+ param([string[]]$Models)
+
+ if ($Models.Count -eq 0)
+ {
+ return
+ }
+
+ $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated/api') 'Models'
+ $ModuleName = 'RecoveryServices'
+ $OutputDir = Join-Path $PSScriptRoot 'custom/autogen-model-cmdlets'
+ $null = New-Item -ItemType Directory -Force -Path $OutputDir
+
+ $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
+ $Content = ''
+ $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
+ { $Content += get-content $_.fullname -raw
+ } }
+
+ $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
+ $Nodes = $Tree.ChildNodes().ChildNodes()
+ foreach ($Model in $Models)
+ {
+ $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
+ if ($InterfaceNode.count -eq 0) {
+ continue
+ }
+ # through a queue, we iterate all the parent models.
+ $Queue = @($InterfaceNode)
+ $visited = @("I$Model")
+ $AllInterfaceNodes = @()
+ while ($Queue.count -ne 0)
+ {
+ $AllInterfaceNodes += $Queue[0]
+ # Baselist contains the direct parent models.
+ foreach ($parent in $Queue[0].BaseList.Types)
+ {
+ if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value)))
+ {
+ $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) })
+ $visited = [Array]$visited + $parent.Type.Right.Identifier.Value
+ }
+ }
+ $first, $Queue = $Queue
+ }
+
+ $Namespace = $InterfaceNode.Parent.Name
+ $ObjectType = $Model
+ $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
+ # remove duplicated module name
+ if ($ObjectType.StartsWith($ModuleName)) {
+ $ModulePrefix = ''
+ } else {
+ $ModulePrefix = $ModuleName
+ }
+ $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
+
+ $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string]
+ $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string]
+ foreach ($Node in $AllInterfaceNodes)
+ {
+ foreach ($Member in $Node.Members)
+ {
+ $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
+ $Required = $false
+ $Description = ""
+ $Readonly = $False
+ foreach ($Argument in $Arguments)
+ {
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
+ {
+ $Required = $Argument.Expression.Token.Value
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Description")
+ {
+ $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"')
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly")
+ {
+ $Readonly = $Argument.Expression.Token.Value
+ }
+ }
+ if ($Readonly)
+ {
+ continue
+ }
+ $Identifier = $Member.Identifier.Value
+ $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
+ $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
+ if ($Required)
+ {
+ $ParameterDefinePropertyList.Add("Mandatory")
+ }
+ if ($Description -ne "")
+ {
+ $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
+ }
+ $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
+ $ParameterDefineScript = "
+ [Parameter($ParameterDefineProperty)]${completer}
+ [${Type}]
+ `$${Identifier}"
+ $ParameterDefineScriptList.Add($ParameterDefineScript)
+ $ParameterAssignScriptList.Add("
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
+ }
+ }
+ $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
+ $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
+
+ $Script = "
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ${ObjectType}.
+.Description
+Create an in-memory object for ${ObjectType}.
+
+.Outputs
+${ObjectTypeWithNamespace}
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
+#>
+function New-Az${ModulePrefix}${ObjectType}Object {
+ [OutputType('${ObjectTypeWithNamespace}')]
+ [CmdletBinding(PositionalBinding=`$false)]
+ Param(
+${ParameterDefineScript}
+ )
+
+ process {
+ `$Object = [${ObjectTypeWithNamespace}]::New()
+${ParameterAssignScript}
+ return `$Object
+ }
+}
+"
+ Set-Content -Path $OutputPath -Value $Script
+ }
+}
diff --git a/swaggerci/recoveryservices/custom/Az.RecoveryServices.custom.psm1 b/swaggerci/recoveryservices/custom/Az.RecoveryServices.custom.psm1
new file mode 100644
index 000000000000..646996863f64
--- /dev/null
+++ b/swaggerci/recoveryservices/custom/Az.RecoveryServices.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.RecoveryServices.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.RecoveryServices.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/swaggerci/recoveryservices/custom/README.md b/swaggerci/recoveryservices/custom/README.md
new file mode 100644
index 000000000000..6bf0a7dafec8
--- /dev/null
+++ b/swaggerci/recoveryservices/custom/README.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.RecoveryServices` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.RecoveryServices.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.RecoveryServices` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.RecoveryServices.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.RecoveryServices.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.RecoveryServices`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### Attributes
+For processing the cmdlets, we've created some additional attributes:
+- `Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.DescriptionAttribute`
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+- `Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.RecoveryServices`.
+- `Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.RecoveryServices`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/docs/Az.RecoveryServices.md b/swaggerci/recoveryservices/docs/Az.RecoveryServices.md
new file mode 100644
index 000000000000..bfed98498209
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Az.RecoveryServices.md
@@ -0,0 +1,58 @@
+---
+Module Name: Az.RecoveryServices
+Module Guid: f2ce8b02-775d-4da9-9071-a5f1cc258cd9
+Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices
+Help Version: 1.0.0.0
+Locale: en-US
+---
+
+# Az.RecoveryServices Module
+## Description
+Microsoft Azure PowerShell: RecoveryServices cmdlets
+
+## Az.RecoveryServices Cmdlets
+### [Get-AzRecoveryServicesOperationResult](Get-AzRecoveryServicesOperationResult.md)
+Gets the operation result for a resource.
+
+### [Get-AzRecoveryServicesOperationStatus](Get-AzRecoveryServicesOperationStatus.md)
+Gets the operation status for a resource.
+
+### [Get-AzRecoveryServicesPrivateLinkResource](Get-AzRecoveryServicesPrivateLinkResource.md)
+Returns a specified private link resource that need to be created for Backup and SiteRecovery
+
+### [Get-AzRecoveryServicesReplicationUsage](Get-AzRecoveryServicesReplicationUsage.md)
+Fetches the replication usages of the vault.
+
+### [Get-AzRecoveryServicesUsage](Get-AzRecoveryServicesUsage.md)
+Fetches the usages of the vault.
+
+### [Get-AzRecoveryServicesVault](Get-AzRecoveryServicesVault.md)
+Get the Vault details.
+
+### [Get-AzRecoveryServicesVaultExtendedInfo](Get-AzRecoveryServicesVaultExtendedInfo.md)
+Get the vault extended info.
+
+### [New-AzRecoveryServicesVault](New-AzRecoveryServicesVault.md)
+Creates or updates a Recovery Services vault.
+
+### [New-AzRecoveryServicesVaultCertificate](New-AzRecoveryServicesVaultCertificate.md)
+Uploads a certificate for a resource.
+
+### [New-AzRecoveryServicesVaultExtendedInfo](New-AzRecoveryServicesVaultExtendedInfo.md)
+Create vault extended info.
+
+### [Remove-AzRecoveryServicesRegisteredIdentity](Remove-AzRecoveryServicesRegisteredIdentity.md)
+Unregisters the given container from your Recovery Services vault.
+
+### [Remove-AzRecoveryServicesVault](Remove-AzRecoveryServicesVault.md)
+Deletes a vault.
+
+### [Test-AzRecoveryServicesRecoveryServiceNameAvailability](Test-AzRecoveryServicesRecoveryServiceNameAvailability.md)
+API to check for resource name availability.\r\nA name is available if no other resource exists that has the same SubscriptionId, Resource Name and Type\r\nor if one or more such resources exist, each of these must be GC'd and their time of deletion be more than 24 Hours Ago
+
+### [Update-AzRecoveryServicesVault](Update-AzRecoveryServicesVault.md)
+Updates the vault.
+
+### [Update-AzRecoveryServicesVaultExtendedInfo](Update-AzRecoveryServicesVaultExtendedInfo.md)
+Update vault extended info.
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationResult.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationResult.md
new file mode 100644
index 000000000000..c4e308462893
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationResult.md
@@ -0,0 +1,194 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesoperationresult
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesOperationResult
+
+## SYNOPSIS
+Gets the operation result for a resource.
+
+## SYNTAX
+
+### Get (Default)
+```
+Get-AzRecoveryServicesOperationResult -OperationId -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] [-PassThru] []
+```
+
+### GetViaIdentity
+```
+Get-AzRecoveryServicesOperationResult -InputObject [-DefaultProfile ]
+ [-PassThru] []
+```
+
+## DESCRIPTION
+Gets the operation result for a resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -OperationId
+.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVault
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationStatus.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationStatus.md
new file mode 100644
index 000000000000..961accd76681
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesOperationStatus.md
@@ -0,0 +1,179 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesoperationstatus
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesOperationStatus
+
+## SYNOPSIS
+Gets the operation status for a resource.
+
+## SYNTAX
+
+### Get (Default)
+```
+Get-AzRecoveryServicesOperationStatus -OperationId -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzRecoveryServicesOperationStatus -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Gets the operation status for a resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -OperationId
+.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IOperationResource
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesPrivateLinkResource.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesPrivateLinkResource.md
new file mode 100644
index 000000000000..59f41dbc5ef6
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesPrivateLinkResource.md
@@ -0,0 +1,185 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesprivatelinkresource
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesPrivateLinkResource
+
+## SYNOPSIS
+Returns a specified private link resource that need to be created for Backup and SiteRecovery
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzRecoveryServicesPrivateLinkResource -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzRecoveryServicesPrivateLinkResource -Name -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzRecoveryServicesPrivateLinkResource -InputObject
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Returns a specified private link resource that need to be created for Backup and SiteRecovery
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases: PrivateLinkResourceName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IPrivateLinkResource
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesReplicationUsage.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesReplicationUsage.md
new file mode 100644
index 000000000000..4945ed96656f
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesReplicationUsage.md
@@ -0,0 +1,123 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesreplicationusage
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesReplicationUsage
+
+## SYNOPSIS
+Fetches the replication usages of the vault.
+
+## SYNTAX
+
+```
+Get-AzRecoveryServicesReplicationUsage -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Fetches the replication usages of the vault.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IReplicationUsage
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesUsage.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesUsage.md
new file mode 100644
index 000000000000..70eb665e7a55
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesUsage.md
@@ -0,0 +1,123 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesusage
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesUsage
+
+## SYNOPSIS
+Fetches the usages of the vault.
+
+## SYNTAX
+
+```
+Get-AzRecoveryServicesUsage -ResourceGroupName -VaultName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Fetches the usages of the vault.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVaultUsage
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVault.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVault.md
new file mode 100644
index 000000000000..f0ab5afe638e
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVault.md
@@ -0,0 +1,175 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesvault
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesVault
+
+## SYNOPSIS
+Get the Vault details.
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzRecoveryServicesVault [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzRecoveryServicesVault -Name -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzRecoveryServicesVault -InputObject [-DefaultProfile ]
+ []
+```
+
+### List1
+```
+Get-AzRecoveryServicesVault -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get the Vault details.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases: VaultName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List1
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List, List1
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVault
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVaultExtendedInfo.md b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVaultExtendedInfo.md
new file mode 100644
index 000000000000..2e0de19ba505
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Get-AzRecoveryServicesVaultExtendedInfo.md
@@ -0,0 +1,164 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesvaultextendedinfo
+schema: 2.0.0
+---
+
+# Get-AzRecoveryServicesVaultExtendedInfo
+
+## SYNOPSIS
+Get the vault extended info.
+
+## SYNTAX
+
+### Get (Default)
+```
+Get-AzRecoveryServicesVaultExtendedInfo -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzRecoveryServicesVaultExtendedInfo -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Get the vault extended info.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVaultExtendedInfoResource
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVault.md b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVault.md
new file mode 100644
index 000000000000..8810003db867
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVault.md
@@ -0,0 +1,403 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/new-azrecoveryservicesvault
+schema: 2.0.0
+---
+
+# New-AzRecoveryServicesVault
+
+## SYNOPSIS
+Creates or updates a Recovery Services vault.
+
+## SYNTAX
+
+```
+New-AzRecoveryServicesVault -Name -ResourceGroupName -Location
+ [-SubscriptionId ] [-EncryptionInfrastructureEncryption ]
+ [-Etag ] [-IdentityType ] [-IdentityUserAssignedIdentity ]
+ [-KekIdentityUserAssignedIdentity ] [-KekIdentityUseSystemAssignedIdentity]
+ [-KeyVaultPropertyKeyUri ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ]
+ [-SkuSize ] [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Creates or updates a Recovery Services vault.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -AsJob
+Run the command as a job
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EncryptionInfrastructureEncryption
+Enabling/Disabling the Double Encryption state
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Support.InfrastructureEncryptionState
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Etag
+Optional ETag.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -IdentityType
+The type of managed identity used.
+The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities.
+The type 'None' will remove any identities.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Support.ResourceIdentityType
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -IdentityUserAssignedIdentity
+The list of user-assigned identities associated with the resource.
+The user-assigned identity dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -KekIdentityUserAssignedIdentity
+The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -KekIdentityUseSystemAssignedIdentity
+Indicate that system assigned identity should be used.
+Mutually exclusive with 'userAssignedIdentity' field
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -KeyVaultPropertyKeyUri
+The key uri of the Customer Managed Key
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Location
+Resource location.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases: VaultName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -NoWait
+Run the command asynchronously
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SkuCapacity
+The sku capacity
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SkuFamily
+The sku family
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SkuName
+The Sku name.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Support.SkuName
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SkuSize
+The sku size
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SkuTier
+The Sku tier.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Tag
+Resource tags.
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVault
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultCertificate.md b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultCertificate.md
new file mode 100644
index 000000000000..1ffa18829f3f
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultCertificate.md
@@ -0,0 +1,200 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/new-azrecoveryservicesvaultcertificate
+schema: 2.0.0
+---
+
+# New-AzRecoveryServicesVaultCertificate
+
+## SYNOPSIS
+Uploads a certificate for a resource.
+
+## SYNTAX
+
+```
+New-AzRecoveryServicesVaultCertificate -CertificateName -ResourceGroupName
+ -VaultName [-SubscriptionId ] [-AuthType ] [-CertificateInputFile ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Uploads a certificate for a resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -AuthType
+Specifies the authentication type.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Support.AuthType
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -CertificateInputFile
+Input File for Certificate (The base64 encoded certificate raw data string)
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -CertificateName
+Certificate friendly name.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVaultCertificateResponse
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultExtendedInfo.md b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultExtendedInfo.md
new file mode 100644
index 000000000000..2cf3e245923e
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/New-AzRecoveryServicesVaultExtendedInfo.md
@@ -0,0 +1,231 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/new-azrecoveryservicesvaultextendedinfo
+schema: 2.0.0
+---
+
+# New-AzRecoveryServicesVaultExtendedInfo
+
+## SYNOPSIS
+Create vault extended info.
+
+## SYNTAX
+
+```
+New-AzRecoveryServicesVaultExtendedInfo -ResourceGroupName -VaultName
+ [-SubscriptionId ] [-Algorithm ] [-EncryptionKey ]
+ [-EncryptionKeyThumbprint ] [-Etag ] [-IntegrityKey ] [-DefaultProfile ]
+ [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Create vault extended info.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -Algorithm
+Algorithm for Vault ExtendedInfo
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EncryptionKey
+Encryption key.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EncryptionKeyThumbprint
+Encryption key thumbprint.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Etag
+Optional ETag.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -IntegrityKey
+Integrity key.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.IVaultExtendedInfoResource
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/README.md b/swaggerci/recoveryservices/docs/README.md
new file mode 100644
index 000000000000..3557ab9c8267
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/README.md
@@ -0,0 +1,11 @@
+# Docs
+This directory contains the documentation of the cmdlets for the `Az.RecoveryServices` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder.
+
+## Info
+- Modifiable: no
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+## Details
+The process of documentation generation loads `Az.RecoveryServices` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder.
\ No newline at end of file
diff --git a/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesRegisteredIdentity.md b/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesRegisteredIdentity.md
new file mode 100644
index 000000000000..0c2d7457683d
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesRegisteredIdentity.md
@@ -0,0 +1,226 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/remove-azrecoveryservicesregisteredidentity
+schema: 2.0.0
+---
+
+# Remove-AzRecoveryServicesRegisteredIdentity
+
+## SYNOPSIS
+Unregisters the given container from your Recovery Services vault.
+
+## SYNTAX
+
+### Delete (Default)
+```
+Remove-AzRecoveryServicesRegisteredIdentity -IdentityName -ResourceGroupName
+ -VaultName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf]
+ []
+```
+
+### DeleteViaIdentity
+```
+Remove-AzRecoveryServicesRegisteredIdentity -InputObject
+ [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Unregisters the given container from your Recovery Services vault.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -IdentityName
+Name of the protection container to unregister.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: DeleteViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -VaultName
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### System.Boolean
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesVault.md b/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesVault.md
new file mode 100644
index 000000000000..8bced19b6942
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Remove-AzRecoveryServicesVault.md
@@ -0,0 +1,210 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/remove-azrecoveryservicesvault
+schema: 2.0.0
+---
+
+# Remove-AzRecoveryServicesVault
+
+## SYNOPSIS
+Deletes a vault.
+
+## SYNTAX
+
+### Delete (Default)
+```
+Remove-AzRecoveryServicesVault -Name -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### DeleteViaIdentity
+```
+Remove-AzRecoveryServicesVault -InputObject [-DefaultProfile ]
+ [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Deletes a vault.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: DeleteViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the recovery services vault.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases: VaultName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### System.Boolean
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Test-AzRecoveryServicesRecoveryServiceNameAvailability.md b/swaggerci/recoveryservices/docs/Test-AzRecoveryServicesRecoveryServiceNameAvailability.md
new file mode 100644
index 000000000000..809694cf439c
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Test-AzRecoveryServicesRecoveryServiceNameAvailability.md
@@ -0,0 +1,262 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/test-azrecoveryservicesrecoveryservicenameavailability
+schema: 2.0.0
+---
+
+# Test-AzRecoveryServicesRecoveryServiceNameAvailability
+
+## SYNOPSIS
+API to check for resource name availability.\r\nA name is available if no other resource exists that has the same SubscriptionId, Resource Name and Type\r\nor if one or more such resources exist, each of these must be GC'd and their time of deletion be more than 24 Hours Ago
+
+## SYNTAX
+
+### CheckExpanded (Default)
+```
+Test-AzRecoveryServicesRecoveryServiceNameAvailability -Location -ResourceGroupName
+ [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] [-Confirm]
+ [-WhatIf] []
+```
+
+### Check
+```
+Test-AzRecoveryServicesRecoveryServiceNameAvailability -Location -ResourceGroupName
+ -Input [-SubscriptionId ] [-DefaultProfile ] [-Confirm]
+ [-WhatIf] []
+```
+
+### CheckViaIdentity
+```
+Test-AzRecoveryServicesRecoveryServiceNameAvailability -InputObject
+ -Input [-DefaultProfile ] [-Confirm] [-WhatIf]
+ []
+```
+
+### CheckViaIdentityExpanded
+```
+Test-AzRecoveryServicesRecoveryServiceNameAvailability -InputObject
+ [-Name ] [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+API to check for resource name availability.\r\nA name is available if no other resource exists that has the same SubscriptionId, Resource Name and Type\r\nor if one or more such resources exist, each of these must be GC'd and their time of deletion be more than 24 Hours Ago
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Input
+Resource Name availability input parameters - Resource type and resource name
+To construct, see NOTES section for INPUT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ICheckNameAvailabilityParameters
+Parameter Sets: Check, CheckViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+Parameter Sets: CheckViaIdentity, CheckViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Location
+Location of the resource
+
+```yaml
+Type: System.String
+Parameter Sets: Check, CheckExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+Resource name for which availability needs to be checked
+
+```yaml
+Type: System.String
+Parameter Sets: CheckExpanded, CheckViaIdentityExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group where the recovery services vault is present.
+
+```yaml
+Type: System.String
+Parameter Sets: Check, CheckExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The subscription Id.
+
+```yaml
+Type: System.String
+Parameter Sets: Check, CheckExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Type
+Describes the Resource type: Microsoft.RecoveryServices/Vaults
+
+```yaml
+Type: System.String
+Parameter Sets: CheckExpanded, CheckViaIdentityExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ICheckNameAvailabilityParameters
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.IRecoveryServicesIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Models.Api20220201.ICheckNameAvailabilityResult
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+INPUT : Resource Name availability input parameters - Resource type and resource name
+ - `[Name ]`: Resource name for which availability needs to be checked
+ - `[Type ]`: Describes the Resource type: Microsoft.RecoveryServices/Vaults
+
+INPUTOBJECT : Identity Parameter
+ - `[CertificateName ]`: Certificate friendly name.
+ - `[Id ]`: Resource identity path
+ - `[IdentityName ]`: Name of the protection container to unregister.
+ - `[Location ]`: Location of the resource
+ - `[OperationId ]`:
+ - `[PrivateLinkResourceName ]`:
+ - `[ResourceGroupName ]`: The name of the resource group where the recovery services vault is present.
+ - `[SubscriptionId ]`: The subscription Id.
+ - `[VaultName ]`: The name of the recovery services vault.
+
+## RELATED LINKS
+
diff --git a/swaggerci/recoveryservices/docs/Update-AzRecoveryServicesVault.md b/swaggerci/recoveryservices/docs/Update-AzRecoveryServicesVault.md
new file mode 100644
index 000000000000..a95b57cee767
--- /dev/null
+++ b/swaggerci/recoveryservices/docs/Update-AzRecoveryServicesVault.md
@@ -0,0 +1,449 @@
+---
+external help file:
+Module Name: Az.RecoveryServices
+online version: https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/update-azrecoveryservicesvault
+schema: 2.0.0
+---
+
+# Update-AzRecoveryServicesVault
+
+## SYNOPSIS
+Updates the vault.
+
+## SYNTAX
+
+### UpdateExpanded (Default)
+```
+Update-AzRecoveryServicesVault -Name -ResourceGroupName [-SubscriptionId ]
+ [-EncryptionInfrastructureEncryption ] [-Etag ]
+ [-IdentityType ] [-IdentityUserAssignedIdentity ]
+ [-KekIdentityUserAssignedIdentity ] [-KekIdentityUseSystemAssignedIdentity]
+ [-KeyVaultPropertyKeyUri ] [-Location ] [-SkuCapacity ] [-SkuFamily ]
+ [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] [-DefaultProfile ]
+ [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+### UpdateViaIdentityExpanded
+```
+Update-AzRecoveryServicesVault -InputObject
+ [-EncryptionInfrastructureEncryption ] [-Etag ]
+ [-IdentityType ] [-IdentityUserAssignedIdentity ]
+ [-KekIdentityUserAssignedIdentity ] [-KekIdentityUseSystemAssignedIdentity]
+ [-KeyVaultPropertyKeyUri ] [-Location ] [-SkuCapacity ] [-SkuFamily ]
+ [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag