Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.83k forks source link

Enable-AzRecoveryServicesBackupProtection : Index (zero based) must be greater than or equal to zero and less than the size of the argument list. #10255

Closed DennisMunns closed 4 years ago

DennisMunns commented 4 years ago

Description

Running Enable-AzRecoveryServicesBackupProtection to add a storage account to the vault returns "Enable-AzRecoveryServicesBackupProtection : Index (zero based) must be greater than or equal to zero and less than the size of the argument list."

Steps to reproduce

Enable-AzRecoveryServicesBackupProtection -StorageAccountName $FilesStorageAccount -Name $FilesStorageAccount -Policy $BackupPolicy -VaultId $Vault.ID

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.18362.145
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.145
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions


    Directory: C:\Users\\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.2.4.2    AzureAutomationAuthoringToolkit     {Get-AutomationVariable, Get-AutomationCertificate, Get-AutomationPSCredential, Get-AutomationConnection...}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.6.3      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     1.6.1      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     1.0.1      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...}
Script     1.0.0      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...}
Script     1.0.2      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script     1.0.1      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script     1.1.1      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}
Script     1.1.0      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}
Script     1.3.1      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup...}
Script     1.2.0      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup...}
Script     1.0.2      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan...}
Script     1.0.1      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan...}
Script     1.3.3      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}        
Script     1.3.1      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}        
Script     1.1.1      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     1.1.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     1.0.1      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.0.0      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.3.1      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.3.0      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.2.1      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...}
Script     1.2.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...}
Script     2.6.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script     2.4.1      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script     1.0.1      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script     1.1.0      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}
Script     1.3.0      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.1.3      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.0.1      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCr...
Script     1.0.0      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCr...
Script     1.2.2      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}  
Script     1.2.1      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}  
Script     1.0.1      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSou...
Script     1.0.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSou...
Script     1.0.0      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}
Script     1.1.1      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}
Script     1.2.2      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.2.1      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.4.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     1.3.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     1.1.1      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     1.1.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     2.0.2      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}
Script     2.0.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}
Script     1.3.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     1.2.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     1.3.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}
Script     1.3.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}
Script     1.3.1      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...}     
Script     1.3.0      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...}     
Script     1.1.1      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}
Script     1.1.0      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}
Script     1.0.1      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...}
Script     1.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...}
Script     1.0.1      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.0.0      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.1.0      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability...}
Script     1.3.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     1.2.1      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     1.14.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, R...
Script     1.12.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, R...
Script     1.1.0      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}
Script     1.3.3      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, ...
Script     1.3.2      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, ...
Script     1.1.3      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.2      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.0      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace...}
Script     1.4.5      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}
Script     1.4.3      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}
Script     1.1.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}
Script     1.0.2      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     1.0.1      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     1.7.0      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     1.6.1      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     1.4.0      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script     1.3.0      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script     1.2.0      Az.ServiceFabric                    {Add-AzServiceFabricApplicationCertificate, Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode...}
Script     1.1.1      Az.ServiceFabric                    {Add-AzServiceFabricApplicationCertificate, Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode...}
Script     1.1.0      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     1.0.2      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     1.14.2     Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatab...
Script     1.13.1     Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatab...
Script     1.7.0      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.5.1      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.2.0      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-AzStorageSyncService...}
Script     1.0.0      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction...}
Script     1.0.2      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficMa...
Script     1.0.1      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficMa...
Script     1.4.2      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Script     1.4.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Binary     2.0.2.5    AzureADPreview                      {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...}
Manifest   1.0.0.23   AzureRmStorageTable                 {Add-StorageTableRow, Get-AzureStorageTableRowAll, Get-AzureStorageTableRowByPartitionKey, Get-AzureStorageTableRowByColumnName...}
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}
Manifest   1.1.183.17 MSOnline                            {Get-MsolDevice, Remove-MsolDevice, Enable-MsolDevice, Disable-MsolDevice...}
Script     1.1.7.0    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Binary     1.5.1907.2 PartnerCenter                       {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCenter, Disconnect-PartnerCenter...}
Script     3.4.0      Pester                              {Describe, Context, It, Should...}
Script     1.6.0      PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}
Script     21.1.18135 SqlServer                           {Add-RoleMember, Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp, Add-SqlAzureAuthenticationContext...}

    Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   1.0.1.0    ActiveDirectory                     {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplicationPolicy, Add-ADFineGrainedPasswordPolicySubject...}    
Manifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister-AppBackgroundTask...}
Manifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...}
Manifest   1.0.0.0    AppvClient                          {Add-AppvClientConnectionGroup, Add-AppvClientPackage, Add-AppvPublishingServer, Disable-Appv...}
Manifest   2.0.1.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...}
Script     1.0.0.0    AssignedAccess                      {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}
Manifest   1.0        BestPractices                       {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult}
Manifest   1.0.0.0    BitLocker                           {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector...}
Manifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...}
Manifest   1.0.0.0    BranchCache                         {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading...}
Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...}
Manifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...}
Manifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}
Manifest   1.0.2.0    DeliveryOptimization                {Delete-DeliveryOptimizationCache, Get-DeliveryOptimizationStatus, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizationPerfSnap...}
Manifest   2.0.0.0    DhcpServer                          {Add-DhcpServerInDC, Add-DhcpServerv4Class, Add-DhcpServerv4ExclusionRange, Add-DhcpServerv4Failover...}
Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration, Get-DAEntryPointTableItem...}
Script     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...}
Manifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...}
Manifest   2.0.0.0    DnsServer                           {Add-DnsServerConditionalForwarderZone, Add-DnsServerDirectoryPartition, Add-DnsServerForwarder, Add-DnsServerPrimaryZone...}
Manifest   1.0.0.0    EventTracingManagement              {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession...}
Manifest   1.0.0.0    GroupPolicy                         {Backup-GPO, Block-GPInheritance, Copy-GPO, Get-GPInheritance...}
Manifest   1.0.0.0    HgsClient                           {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsClientConfiguration, Set-HgsClientConfiguration...}
Manifest   1.0.0.0    HgsDiagnostics                      {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTarget}
Manifest   1.0.0.1    HostNetworkingService               {Remove-HnsNamespace, Remove-HnsEndpoint, Get-HnsEndpoint, Remove-HnsPolicyList...}
Binary     2.0.0.0    Hyper-V                             {Add-VMAssignableDevice, Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGpuPartitionAdapter...}
Binary     1.1        Hyper-V                             {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Add-VMMigrationNetwork...}
Script     1.1.0.0    IISAdministration                   {Get-IISAppPool, Start-IISCommitDelay, Stop-IISCommitDelay, Get-IISSite...}
Manifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocation...}
Manifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...}
Manifest   2.0.0.0    IscsiTarget                         {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMapping, Checkpoint-IscsiVirtualDisk, Convert-IscsiVirtualDisk...}
Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}
Manifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...}
Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}
Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}
Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}
Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...}
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}
Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...}
Manifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}
Manifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive-DtcDiagnosticTransaction...}
Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsulatedPacketTaskOffload...}
Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest   1.0.0.0    NetDiagnostics                      Get-NetView
Manifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...}
Manifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...}
Manifest   1.0        NetLldpAgent                        {Enable-NetLldpAgent, Disable-NetLldpAgent, Get-NetLldpAgent}
Manifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...}
Manifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}
Manifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryptoProposal...}
Manifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...}
Manifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...}
Manifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfiguration}
Manifest   1.0.0.0    NetworkControllerDiagnostics        {Get-NetworkControllerDeploymentInfo, Get-NetworkControllerManagedDevices, Debug-NetworkController, Debug-NetworkControllerConfigurationState...}
Manifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-NetworkSwitchEthernetPortIPAddress...}
Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatTransitionConfiguration...}
Manifest   1.0        NFS                                 {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity...}
Manifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...}
Binary     1.0.0.0    PersistentMemory                    {Get-PmemDisk, Get-PmemPhysicalDevice, Get-PmemUnusedRegion, New-PmemDisk...}
Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnrollmentPolicy...}
Manifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}
Manifest   1.1        PrintManagement                     {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration...}
Binary     1.0.11     ProcessMitigations                  {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}
Script     3.0        Provisioning                        {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCertificate, Export-Trace...}
Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...}
Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...}
Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...}
Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}
Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow
Manifest   3.0.0.0    RemoteAccess                        {Add-DAAppServer, Add-DAClient, Add-DAClientDnsConfiguration, Add-DAEntryPoint...}
Manifest   2.0.0.0    RemoteDesktop                       {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-RDVirtualDesktopDeployment...}
Manifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...}
Manifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...}
Script     2.0.0.0    ServerManager                       {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsFeature, Enable-ServerManagerStandardUserRemoting...}
Cim        1.0.0.0    ServerManagerTasks                  {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerformanceCollector, Stop-SMPerformanceCollector...}
Manifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...}
Manifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}
Manifest   1.0.0.0    StartLayout                         {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}
Manifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain...}
Manifest   1.0.0.0    StorageBusCache                     {Clear-StorageBusDisk, Disable-StorageBusCache, Disable-StorageBusDisk, Enable-StorageBusCache...}
Manifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKey...}
Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}
Binary     2.1.639.0  UEV                                 {Clear-UevConfiguration, Clear-UevAppxPackage, Restore-UevBackup, Set-UevTemplateProfile...}
Manifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...}
Manifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}
Manifest   1.0.0.0    WebAdministration                   {Start-WebCommitDelay, Stop-WebCommitDelay, Get-WebConfigurationLock, Remove-WebConfigurationLock...}
Manifest   2.0.0.0    Whea                                {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Manifest   1.0.0.0    WindowsDeveloperLicense             {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration}
Script     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}
Manifest   1.0.0.0    WindowsSearch                       {Get-WindowsSearchSetting, Set-WindowsSearchSetting}
Manifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog
Manifest   1.0.0.2    WindowsUpdateProvider               {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, Get-WUIsPendingReboot...}

    Directory: C:\Program Files\Intel

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     22.3.9.0   IntelNetCmdlets                     {Get-IntelNetFcoeSetting, Set-IntelNetFcoeSetting, Get-IntelNetFcoeVLAN, Get-IntelNetFcoeFabric...}

    Directory: C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   14.0       SQLPS                               {Backup-SqlDatabase, Save-SqlMigrationReport, Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp...}

    Directory: C:\Program Files\SharePoint Online Management Shell

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     16.0.91... Microsoft.Online.SharePoint.Powe... {Register-SPODataEncryptionPolicy, Update-SPODataEncryptionPolicy, Get-SPODataEncryptionPolicy, Get-SPOSiteDataEncryptionPolicy...}

    Directory: C:\Users\\.vscode\extensions\ms-vscode.powershell-2019.9.0\modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.1.3      Plaster                             {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest}
Script     1.13.0     PowerShellEditorServices            {Start-EditorServicesHost, Get-PowerShellEditorServicesVersion, Compress-LogDir}
Script     0.2.0      PowerShellEditorServices.VSCode     {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-VSCodeHtmlContentView...}
Script     1.18.3     PSScriptAnalyzer                    {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}

Debug output

PS Enable-AzRecoveryServicesBackupProtection -StorageAccountName $FilesStorageAccount -Name $FilesStorageAccount -Policy $BackupPolicy -VaultId $Vault.ID
DEBUG: 11:30:57 - EnableAzureRmRecoveryServicesBackupProtection begin processing with ParameterSet 'AzureFileShareEnableProtection'.
DEBUG: 11:30:57 - using account id '<Admin Account>'...
DEBUG: Inside Restore. Going to create ResourceClient.
DEBUG: [Common.Authentication]: Authenticating using Account: '<Admin Account>', environment: 'AzureCloud', tenant: '<Tenant ID>'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: '<Tenant ID>', Endpoint: 'https://login.microsoftonline.com/', ClientId: '<Client ID>', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/<Tenant ID>/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: '<Tenant ID>', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '<Client ID>', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: === Token Acquisition started: 
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/<Tenant ID>/
        Resource: https://management.core.windows.net/
        ClientId: <Client ID>
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.4554804Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 127 items to token cache.

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: 36.283975305 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: 36.283975305 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 11/10/2019 11:07:14 +00:00

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.4694817Z: 21682d85-9da8-4d82-be4d-7a87782878fd - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 11/10/2019 11:07:14 +00:00Access Token Hash: d3gsBeM1t6tYQWSRf1AYgxrgeajGzsr/7FkcrPjJHdk=
         User id: M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU

DEBUG: Client Created successfully
DEBUG: [Common.Authentication]: Authenticating using Account: '<Admin Account>', environment: 'AzureCloud', tenant: '<Tenant ID>'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: '<Tenant ID>', Endpoint: 'https://login.microsoftonline.com/', ClientId: '<Client ID>', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/<Tenant ID>/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: '<Tenant ID>', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '<Client ID>', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/<Tenant ID>/
        Resource: https://management.core.windows.net/
        ClientId: <Client ID>
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.5454819Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 127 items to token cache.

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: 36.28240862 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: 36.28240862 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5634828Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5644833Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 11/10/2019 11:07:14 +00:00

DEBUG: [ADAL]: Information: 2019-10-11T10:30:57.5644833Z: 89885b6f-6ed3-4e0e-ab7c-5ede7041c515 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 11/10/2019 11:07:14 +00:00Access Token Hash: d3gsBeM1t6tYQWSRf1AYgxrgeajGzsr/7FkcrPjJHdk=
         User id: M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:30:57 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:36:16.9435167'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/refreshContainers?$filter=backupManagementType eq 'AzureStorage'&api-version=2016-12-01

Headers:
x-ms-client-request-id        : 9d1329e6-4cf0-41d1-9877-f880e812cfe6
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
Azure-AsyncOperation          : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationsStatus/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2019-05-13-preview
X-Content-Type-Options        : nosniff
x-ms-request-id               : f0802cff-711e-432d-9ea3-4fcfa1596dbb
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id   : f0802cff-711e-432d-9ea3-4fcfa1596dbb
x-ms-routing-request-id       : UKSOUTH2:20191011T103058Z:f0802cff-711e-432d-9ea3-4fcfa1596dbb
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:30:57 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:30:58 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:36:15.8152194'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : ef476512-1d40-43fb-8205-08624c82f07c
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : 7781cf47-5370-4c21-acb5-b8a17c23e379
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11997
x-ms-correlation-request-id   : 7781cf47-5370-4c21-acb5-b8a17c23e379
x-ms-routing-request-id       : UKSOUTH2:20191011T103058Z:7781cf47-5370-4c21-acb5-b8a17c23e379
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:30:58 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:03 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:36:10.7020391'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 8c7bbb3c-50ac-4155-9673-eaffffe8e93e
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : a3ddb859-a161-4407-ad84-c6e4bfbad486
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11996
x-ms-correlation-request-id   : a3ddb859-a161-4407-ad84-c6e4bfbad486
x-ms-routing-request-id       : UKSOUTH2:20191011T103104Z:a3ddb859-a161-4407-ad84-c6e4bfbad486
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:03 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:08 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:36:05.5531519'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 13f26e36-7917-4c25-a9e2-eaf88f2b4b26
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : b9eda3c2-5c4f-4071-aabc-4acfdcfa5c00
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-correlation-request-id   : b9eda3c2-5c4f-4071-aabc-4acfdcfa5c00
x-ms-routing-request-id       : UKSOUTH2:20191011T103109Z:b9eda3c2-5c4f-4071-aabc-4acfdcfa5c00
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:08 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:14 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:36:00.3918441'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 60470953-43c8-4eba-a6f1-47545abf7915
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
NoContent

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : bf4b6b56-9f22-4afe-8078-cdb886d40a2d
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11994
x-ms-correlation-request-id   : bf4b6b56-9f22-4afe-8078-cdb886d40a2d
x-ms-routing-request-id       : UKSOUTH2:20191011T103114Z:bf4b6b56-9f22-4afe-8078-cdb886d40a2d
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:14 GMT
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:14 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:59.7707508'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/255fa5a2-f5fa-4eb8-ab6d-bc427842777e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 9b339f4e-9e27-4e01-95f2-7d4511119616
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
NoContent

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : 10ab942d-f92a-471f-bc1c-ae2f781028d1
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11993
x-ms-correlation-request-id   : 10ab942d-f92a-471f-bc1c-ae2f781028d1
x-ms-routing-request-id       : UKSOUTH2:20191011T103114Z:10ab942d-f92a-471f-bc1c-ae2f781028d1
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:14 GMT
X-Powered-By                  : ASP.NET

Body:

DEBUG: Discovery operation failed with ErrorCode: Accepted
DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:15 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:59.4374896'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupProtectionContainers?$filter=backupManagementType eq 'AzureStorage'&api-version=2016-12-01

Headers:
x-ms-client-request-id        : 08f59d3e-afad-4536-ba25-881f4836761f
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : 1da7fc78-4484-40d1-ad1d-935b5d1ac5f5
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11992
x-ms-correlation-request-id   : 1da7fc78-4484-40d1-ad1d-935b5d1ac5f5
x-ms-routing-request-id       : UKSOUTH2:20191011T103115Z:1da7fc78-4484-40d1-ad1d-935b5d1ac5f5
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:15 GMT
Server                        : Microsoft-IIS/10.0
X-Powered-By                  : ASP.NET

Body:
{
  "value": [
    {
      "id": "/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;<Resource Group>;<Storage Account Name>",
      "name": "StorageContainer;Storage;<Resource Group>;<Storage Account Name>",
      "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers",
      "properties": {
        "sourceResourceId": "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.Storage/storageAccounts/<Storage Account Name>",
        "protectedItemCount": 0,
        "friendlyName": "<Storage Account Name>",
        "backupManagementType": "AzureStorage",
        "registrationStatus": "Registered",
        "healthStatus": "Healthy",
        "containerType": "StorageContainer",
        "protectableObjectType": "StorageContainer"
      }
    }
  ]
}

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:15 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:59.1641910'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;<Resource Group>;<Storage Account Name>/inquire?$filter=workloadType eq 'AzureFileShare'&api-version=2016-12-01

Headers:
x-ms-client-request-id        : 1b1cbdc6-52f9-4eff-b853-bc3fae27aca5
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
Azure-AsyncOperation          : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;<Resource Group>;<Storage Account Name>/operationsStatus/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2019-05-13-preview
X-Content-Type-Options        : nosniff
x-ms-request-id               : 9a131847-6868-4414-aee4-48f3db59802d
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-correlation-request-id   : 9a131847-6868-4414-aee4-48f3db59802d
x-ms-routing-request-id       : UKSOUTH2:20191011T103115Z:9a131847-6868-4414-aee4-48f3db59802d
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:15 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;<Resource Group>;<Storage Account Name>/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:15 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:58.7995463'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : e5ccfe83-8c83-4916-bd69-bf7dc269f8b5
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : 0bc1d3e3-33af-40e2-9202-a0be783aa6f5
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11991
x-ms-correlation-request-id   : 0bc1d3e3-33af-40e2-9202-a0be783aa6f5
x-ms-routing-request-id       : UKSOUTH2:20191011T103115Z:0bc1d3e3-33af-40e2-9202-a0be783aa6f5
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:15 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:20 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:53.6154398'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 0534cb14-268e-45b4-aaec-59ba2fcb7dea
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : 6dac861d-aa92-437c-a55e-be56a033000b
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11990
x-ms-correlation-request-id   : 6dac861d-aa92-437c-a55e-be56a033000b
x-ms-routing-request-id       : UKSOUTH2:20191011T103121Z:6dac861d-aa92-437c-a55e-be56a033000b
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:21 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:26 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:48.4802483'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 9d4b1442-e4f5-4274-a5fd-fb68ff279f01
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : a44ec1da-8ee3-425c-95c3-1f74914b0afb
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11989
x-ms-correlation-request-id   : a44ec1da-8ee3-425c-95c3-1f74914b0afb
x-ms-routing-request-id       : UKSOUTH2:20191011T103126Z:a44ec1da-8ee3-425c-95c3-1f74914b0afb
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:26 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:31 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:43.3541735'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 3ad726d0-3698-452a-b9df-d50dce1712f8
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : 87ba228d-69ae-47c3-a123-9d9c9bc75c52
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11988
x-ms-correlation-request-id   : 87ba228d-69ae-47c3-a123-9d9c9bc75c52
x-ms-routing-request-id       : UKSOUTH2:20191011T103131Z:87ba228d-69ae-47c3-a123-9d9c9bc75c52
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:31 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:36 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:38.1995778'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 5f04c666-7708-470e-8a27-e866c4b1fd85
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Pragma                        : no-cache
Retry-After                   : 60
X-Content-Type-Options        : nosniff
x-ms-request-id               : d0dd2cfc-becc-4774-97fc-b3b5730fa989
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11987
x-ms-correlation-request-id   : d0dd2cfc-becc-4774-97fc-b3b5730fa989
x-ms-routing-request-id       : UKSOUTH2:20191011T103136Z:d0dd2cfc-becc-4774-97fc-b3b5730fa989
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:36 GMT
Location                      : https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:41 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:33.0097376'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : cffa493a-2956-47af-8a89-d4fc1e4a2a0b
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
NoContent

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : 0e75892f-9732-40e5-88a7-0cddf3c2b209
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11986
x-ms-correlation-request-id   : 0e75892f-9732-40e5-88a7-0cddf3c2b209
x-ms-routing-request-id       : UKSOUTH2:20191011T103141Z:0e75892f-9732-40e5-88a7-0cddf3c2b209
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:41 GMT
X-Powered-By                  : ASP.NET

Body:

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:41 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:32.8261225'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/operationResults/49ff18c9-b592-466b-91f5-d5aca8774c1e?api-version=2016-12-01

Headers:
x-ms-client-request-id        : 127c8db6-60bd-470a-9ad6-a78bf1d911b6
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
NoContent

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : afbb105c-4d34-40a1-8b0a-8446f14c39db
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11985
x-ms-correlation-request-id   : afbb105c-4d34-40a1-8b0a-8446f14c39db
x-ms-routing-request-id       : UKSOUTH2:20191011T103141Z:afbb105c-4d34-40a1-8b0a-8446f14c39db
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:41 GMT
X-Powered-By                  : ASP.NET

Body:

DEBUG: Trigger Enquiry operation failed with ErrorCode: Accepted
DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/11/2019 11:07:14 +00:00', MultipleResource? 'True', Tenant: '<Tenant ID>', UserId: '<Admin Account>'
DEBUG: [Common.Authentication]: User info for token DisplayId: '<Admin Account>', Name: <Admin Account> , IdProvider: 'https://sts.windows.net/ae771e34-6384-4a82-8de8-3ad0ed23e56e/', Uid: 'M29zoYyUdXHjHvSOlmmzrQHYOtnSqrHG9itNt1bMpwU'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/11/2019 11:07:14 +00:00' Comparing to '10/11/2019 10:31:42 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:35:32.3828137'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupProtectableItems?$filter=backupManagementType eq 'AzureStorage'&api-version=2016-12-01

Headers:
x-ms-client-request-id        : c0a73a8c-f8db-4492-ba2b-1909189b5f5a
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
X-Content-Type-Options        : nosniff
x-ms-request-id               : 4e545491-0e07-4cf2-9f9b-b94a9a196ee5
x-ms-client-request-id        : 22af21e1-81bb-4fdf-afdf-df00ddcd4f7e,22af21e1-81bb-4fdf-afdf-df00ddcd4f7e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11984
x-ms-correlation-request-id   : 4e545491-0e07-4cf2-9f9b-b94a9a196ee5
x-ms-routing-request-id       : UKSOUTH2:20191011T103142Z:4e545491-0e07-4cf2-9f9b-b94a9a196ee5
Cache-Control                 : no-cache
Date                          : Fri, 11 Oct 2019 10:31:42 GMT
Server                        : Microsoft-IIS/10.0
X-Powered-By                  : ASP.NET

Body:
{
  "value": [
    {
      "id": "/Subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.RecoveryServices/vaults/<Vault Name>/backupFabrics/Azure/protectionContainers/storagecontainer;storage;<Resource Group>;<Storage Account Name>/protectableItems/azurefileshare;<Share Name>",
      "name": "azurefileshare;<Share Name>",
      "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectableItems",
      "properties": {
        "parentContainerFabricId": "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group>/providers/Microsoft.Storage/storageAccounts/<Storage Account Name>",
        "parentContainerFriendlyName": "<Storage Account Name>",
        "azureFileShareType": "XSMB",
        "backupManagementType": "AzureStorage",
        "workloadType": "AzureFileShare",
        "protectableItemType": "AzureFileShare",
        "friendlyName": "<Share Name>",
        "protectionState": "NotProtected"
      }
    }
  ]
}

DEBUG: Caught exception, type: System.FormatException
Enable-AzRecoveryServicesBackupProtection : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:1 char:1
+ Enable-AzRecoveryServicesBackupProtection -StorageAccountName $FilesS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-AzRecove...ackupProtection], FormatException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.EnableAzureRmRecoveryServicesBackupProtection

DEBUG: AzureQoSEvent: CommandName - Enable-AzRecoveryServicesBackupProtection; IsSuccess - False; Duration - 00:00:44.9166164; Exception - System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel.AzureFilesPsBackupProvider.GetAzureFileShareProtectableObject(String azureFileShareName, String storageAccountName, String vaultName, String vaultResourceGroupName)
   at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel.AzureFilesPsBackupProvider.EnableOrModifyProtection(Boolean disableWithRetentionData)
   at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.EnableAzureRmRecoveryServicesBackupProtection.<ExecuteCmdlet>b__33_0()
   at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.RecoveryServicesBackupCmdletBase.ExecutionBlock(Action action, Boolean shouldProcess);
DEBUG: Finish sending metric.
DEBUG: 11:31:43 - EnableAzureRmRecoveryServicesBackupProtection end processing.
DEBUG: 11:31:43 - EnableAzureRmRecoveryServicesBackupProtection end processing.

Error output

Message        : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
StackTrace     :    at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
                    at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
                    at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel.AzureFilesPsBackupProvider.GetAzureFileShareProtectableObject(String azureFileShareName, String storageAccountName,        
                 String vaultName, String vaultResourceGroupName)
                    at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel.AzureFilesPsBackupProvider.EnableOrModifyProtection(Boolean disableWithRetentionData)
                    at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.EnableAzureRmRecoveryServicesBackupProtection.<ExecuteCmdlet>b__33_0()
                    at Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.RecoveryServicesBackupCmdletBase.ExecutionBlock(Action action, Boolean shouldProcess)
Exception      : System.FormatException
InvocationInfo : {Enable-AzRecoveryServicesBackupProtection}
Line           : Enable-AzRecoveryServicesBackupProtection -StorageAccountName $FilesStorageAccount -Name $FilesStorageAccount -Policy $BackupPolicy -VaultId $Vault.ID | Out-Null
Position       : At line:1 char:1
                 + Enable-AzRecoveryServicesBackupProtection -StorageAccountName $FilesS ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 54
msJinLei commented 4 years ago

@DennisMunns Could you see whether the following cmdlet which changes the order of the parameters also has the same issue? Enable-AzRecoveryServicesBackupProtection -Policy $BackupPolicy -Name $FilesStorageAccount -StorageAccountName $FilesStorageAccount -VaultId $Vault.ID

sambitratha commented 4 years ago

Hi @DennisMunns . You are getting this error mostly because you have passed a fileshare name that doesn't exist in the storage account. Try giving a valid fileshare name once. However the exception caused is because of a faulty error message which will be fixed in the next release.

DennisMunns commented 4 years ago

@sambitratha the issue was the share name in the -Name parameter, thanks.

Is it also possiable to update the help info to make this clearer?

sambitratha commented 4 years ago

@DennisMunns Sure. Could you please mention the changes that you made in the -Name parameter. Thanks

DennisMunns commented 4 years ago

@sambitratha as you suggested, I was passing an incorrect value to the parameter. Giving the -Name parameter the AzureFiles share name fixed the issue.

If the help info on the parameter explained that the value should be the name of the share, I think that would clear things up a bit.

pvrk commented 4 years ago

@DenisMunns: Thanks for the feedback. We have improved the error message and it should be reflected in the next release. Closing this issue.

ghost commented 4 years ago

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.