@@ -54,9 +54,9 @@ public override void ExecuteCmdlet()
54
54
string resourceType = "resourceType" ;
55
55
string displayName = subscriptionId + "_" + ResourceGroupName + "_" + ResourceName ;
56
56
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 ) ) ;
60
60
61
61
X509Certificate2 cert = CertUtils . CreateSelfSignedCert ( CertUtils . DefaultIssuer ,
62
62
CertUtils . GenerateCertFriendlyName ( subscriptionId , ResourceName ) ,
@@ -69,9 +69,9 @@ public override void ExecuteCmdlet()
69
69
try
70
70
{
71
71
// 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" ) ) ;
73
73
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" ) ) ;
75
75
}
76
76
catch ( Exception exception )
77
77
{
@@ -90,7 +90,7 @@ public override void ExecuteCmdlet()
90
90
directoryPath = TargetLocation ;
91
91
}
92
92
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 ) ) ;
94
94
95
95
File . WriteAllBytes ( filePath , Encoding . UTF8 . GetBytes ( vaultCredsFileContent ) ) ;
96
96
@@ -187,7 +187,7 @@ private string GenerateVaultCredsForBackup(X509Certificate2 cert, string subscri
187
187
DataContractSerializer serializer = new DataContractSerializer ( typeof ( BackupVaultCreds ) ) ;
188
188
serializer . WriteObject ( writer , backupVaultCreds ) ;
189
189
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" ) ) ;
191
191
}
192
192
193
193
return Encoding . UTF8 . GetString ( output . ToArray ( ) ) ;
0 commit comments