@@ -54,9 +54,9 @@ public override void ExecuteCmdlet()
5454 string resourceType = "resourceType" ;
5555 string displayName = subscriptionId + "_" + ResourceGroupName + "_" + ResourceName ;
5656
57- WriteVerbose ( string . Format ( CultureInfo . InvariantCulture ,
58- "Executing cmdlet with SubscriptionId = {0}, ResourceGroupName = {1}, ResourceName = {2}, TargetLocation = {3}" ,
59- subscriptionId , ResourceGroupName , ResourceName , TargetLocation ) ) ;
57+ WriteDebug ( string . Format ( CultureInfo . InvariantCulture ,
58+ "Executing cmdlet with SubscriptionId = {0}, ResourceGroupName = {1}, ResourceName = {2}, TargetLocation = {3}" ,
59+ subscriptionId , ResourceGroupName , ResourceName , TargetLocation ) ) ;
6060
6161 X509Certificate2 cert = CertUtils . CreateSelfSignedCert ( CertUtils . DefaultIssuer ,
6262 CertUtils . GenerateCertFriendlyName ( subscriptionId , ResourceName ) ,
@@ -69,9 +69,9 @@ public override void ExecuteCmdlet()
6969 try
7070 {
7171 // Upload cert into ID Mgmt
72- WriteVerbose ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Going to upload the certificate" ) ) ;
72+ WriteDebug ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Going to upload the certificate" ) ) ;
7373 acsNamespace = UploadCert ( cert , subscriptionId , ResourceName , resourceType , ResourceGroupName ) ;
74- WriteVerbose ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Successfully uploaded the certificate" ) ) ;
74+ WriteDebug ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Successfully uploaded the certificate" ) ) ;
7575 }
7676 catch ( Exception exception )
7777 {
@@ -90,7 +90,7 @@ public override void ExecuteCmdlet()
9090 directoryPath = TargetLocation ;
9191 }
9292 string filePath = Path . Combine ( directoryPath , fileName ) ;
93- WriteVerbose ( string . Format ( "Saving Vault Credentials to file : {0}" , filePath ) ) ;
93+ WriteDebug ( string . Format ( "Saving Vault Credentials to file : {0}" , filePath ) ) ;
9494
9595 File . WriteAllBytes ( filePath , Encoding . UTF8 . GetBytes ( vaultCredsFileContent ) ) ;
9696
@@ -187,7 +187,7 @@ private string GenerateVaultCredsForBackup(X509Certificate2 cert, string subscri
187187 DataContractSerializer serializer = new DataContractSerializer ( typeof ( BackupVaultCreds ) ) ;
188188 serializer . WriteObject ( writer , backupVaultCreds ) ;
189189
190- WriteVerbose ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Backup Vault - Successfully serialized the file content" ) ) ;
190+ WriteDebug ( string . Format ( CultureInfo . InvariantCulture , "RecoveryService - Backup Vault - Successfully serialized the file content" ) ) ;
191191 }
192192
193193 return Encoding . UTF8 . GetString ( output . ToArray ( ) ) ;
0 commit comments