-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Azure PS TeamKeyVaultcustomer-reportedneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Description
I'm having trouble creating a key on a Managed HSM using the default release policy. I am following this documentation:
https://learn.microsoft.com/en-us/powershell/module/az.keyvault/add-azkeyvaultkey?view=azps-13.2.0&viewFallbackFrom=azps-13.0.0
Issue script & Debug output
$DebugPreference='Continue'
Import-Module -Name Az -RequiredVersion 13.2.0
Connect-AzAccount
Add-AzKeyVaultKey -VaultName $vaultName -Name testpowershell -KeyType RSA -Exportable -Size 3072 -UseDefaultCVMPolicy
cmdlet Add-AzKeyVaultKey at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Destination: HSM
DEBUG: 9:42:04 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 9:42:04 AM - AddAzureKeyVaultKey begin processing with ParameterSet 'InteractiveCreate'.
DEBUG: 9:42:04 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.KeyVault], Cmdlet = [Add-AzKeyVaultKey]. Returning default value [True].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/[subscription_id]/resources?$filter=resourceType eq 'Microsoft.KeyVault%2Fvaults'&api-version=2016-09-01
Headers:
Accept-Language : en-US
x-ms-client-request-id : 2e154c22-35e5-4027-8eb8-bcda9f9854c9
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 1099
x-ms-ratelimit-remaining-subscription-global-reads: 16499
x-ms-request-id : 584ef99b-0973-44ef-be62-b908c12c7917
x-ms-correlation-request-id : 584ef99b-0973-44ef-be62-b908c12c7917
x-ms-routing-request-id : WESTUS2:20250228T174205Z:584ef99b-0973-44ef-be62-b908c12c7917
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 75C73745F18F46C087340027CEF337B1 Ref B: SJC211051205023 Ref C: 2025-02-28T17:42:05Z
Date : Fri, 28 Feb 2025 17:42:05 GMT
Body:
{
"value": [
{
"id": "/subscriptions/[subscription_id]/resourceGroups/[resource_group]/providers/Microsoft.KeyVault/vaults/MHSMTypescriptTestsKV",
"name": "MHSMTypescriptTestsKV",
"type": "Microsoft.KeyVault/vaults",
"location": "eastus2",
"tags": {}
}
]
}
DEBUG: 9:42:05 AM - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.KeyVault], Cmdlet = [Add-AzKeyVaultKey]. Returning default value [False].
Add-AzKeyVaultKey: Fetch default CVM Policy failed, Vault [vault_name] does not exist in current subscription. If this vault exists in your tenant, please switch to the correct subscription.
DEBUG: 9:42:05 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.KeyVault], Cmdlet = [Add-AzKeyVaultKey]. Returning default value [True].
DEBUG: 9:42:05 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 9:42:05 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.KeyVault:6.3.1; CommandName: Add-AzKeyVaultKey; PSVersion: 7.4.6; IsSuccess: False; Duration: 00:00:00.9603844; SanitizeDuration: 00:00:00; Exception: Fetch default CVM Policy failed, Vault [vault_name] does not exist in current subscription. If this vault exists in your tenant, please switch to the correct subscription.;
DEBUG: 9:42:05 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 9:42:05 AM - AddAzureKeyVaultKey end processing.
Environment data
$PSVersionTable
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Module versions
Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 13.2.0 Az
Script 4.0.2 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 2.1.0 Az.Advisor {Disable-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration, Get-AzAdvisorRecommendation…}
Script 6.1.0 Az.Aks {Disable-AzAksAddOn, Enable-AzAksAddOn, Get-AzAksCluster, Get-AzAksNodePool…}
Script 1.2.0 Az.AnalysisServices {Add-AzAnalysisServicesAccount, Export-AzAnalysisServicesInstanceLog, Get-AzAnalysisServicesServer, New-AzAnalysisServicesFirewallConfig…}
Script 4.1.0 Az.ApiManagement {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion…}
Script 2.0.1 Az.App {Disable-AzContainerAppRevision, Enable-AzContainerAppRevision, Get-AzContainerApp, Get-AzContainerAppAuthConfig…}
Script 1.4.0 Az.AppConfiguration {Clear-AzAppConfigurationDeletedStore, Get-AzAppConfigurationDeletedStore, Get-AzAppConfigurationKey, Get-AzAppConfigurationKeyValue…}
Script 2.3.0 Az.ApplicationInsights {Get-AzApplicationInsights, Get-AzApplicationInsightsApiKey, Get-AzApplicationInsightsContinuousExport, Get-AzApplicationInsightsLinkedSto…
Script 1.1.0 Az.ArcResourceBridge {Get-AzArcResourceBridge, Get-AzArcResourceBridgeApplianceCredential, Get-AzArcResourceBridgeCredential, Get-AzArcResourceBridgeTelemetryC…
Script 2.1.0 Az.Attestation {Add-AzAttestationPolicySigner, Get-AzAttestationPolicy, Get-AzAttestationPolicySigners, Remove-AzAttestationPolicySigner…}
Script 1.1.0 Az.Automanage {Get-AzAutomanageBestPractice, Get-AzAutomanageConfigProfile, Get-AzAutomanageConfigProfileAssignment, Get-AzAutomanageConfigProfileHciAss…
Script 1.11.1 Az.Automation {Export-AzAutomationDscConfiguration, Export-AzAutomationDscNodeReportContent, Export-AzAutomationRunbook, Get-AzAutomationAccount…}
Script 3.7.0 Az.Batch {Disable-AzBatchAutoScale, Disable-AzBatchComputeNodeScheduling, Disable-AzBatchJob, Disable-AzBatchJobSchedule…}
Script 2.2.0 Az.Billing {Get-AzBillingAccount, Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzBillingProfile…}
Script 3.3.0 Az.Cdn {Clear-AzCdnEndpointContent, Clear-AzFrontDoorCdnEndpointContent, Disable-AzCdnCustomDomainCustomHttps, Enable-AzCdnCustomDomainCustomHttp…
Script 2.1.0 Az.CloudService {Get-AzCloudService, Get-AzCloudServiceInstanceView, Get-AzCloudServiceNetworkInterface, Get-AzCloudServiceOSFamily…}
Script 1.15.0 Az.CognitiveServices {Add-AzCognitiveServicesAccountNetworkRule, Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountCommitmentPlan, Get-AzCognitiveS…
Script 9.1.0 Az.Compute {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk…}
Script 1.1.0 Az.ConfidentialLedger {Get-AzConfidentialLedger, New-AzConfidentialLedger, New-AzConfidentialLedgerAADBasedSecurityPrincipalObject, New-AzConfidentialLedgerCert…
Script 1.1.1 Az.ConnectedMachine {Connect-AzConnectedMachine, Get-AzConnectedExtensionMetadata, Get-AzConnectedLicense, Get-AzConnectedLicenseProfile…}
Script 4.1.1 Az.ContainerInstance {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability…}
Script 4.3.0 Az.ContainerRegistry {Connect-AzContainerRegistry, Get-AzContainerRegistryManifest, Get-AzContainerRegistryRepository, Get-AzContainerRegistryTag…}
Script 1.16.0 Az.CosmosDB {Get-AzCosmosDBAccount, Get-AzCosmosDBAccountKey, Get-AzCosmosDBCassandraKeyspace, Get-AzCosmosDBCassandraKeyspaceThroughput…}
Script 1.2.0 Az.DataBoxEdge {Get-AzDataBoxEdgeBandwidthSchedule, Get-AzDataBoxEdgeDevice, Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeOrder…}
Script 1.10.0 Az.Databricks {Get-AzDatabricksAccessConnector, Get-AzDatabricksOutboundNetworkDependenciesEndpoint, Get-AzDatabricksVNetPeering, Get-AzDatabricksWorksp…
Script 1.19.0 Az.DataFactory {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActivityWindo…
Script 1.1.0 Az.DataLakeAnalytics {Add-AzDataLakeAnalyticsDataSource, Add-AzDataLakeAnalyticsFirewallRule, Get-AzDataLakeAnalyticsAccount, Get-AzDataLakeAnalyticsCatalogIte…
Script 1.4.0 Az.DataLakeStore {Add-AzDataLakeStoreFirewallRule, Add-AzDataLakeStoreItemContent, Add-AzDataLakeStoreTrustedIdProvider, Add-AzDataLakeStoreVirtualNetworkR…
Script 2.6.1 Az.DataProtection {Backup-AzDataProtectionBackupInstanceAdhoc, Edit-AzDataProtectionPolicyRetentionRuleClientObject, Edit-AzDataProtectionPolicyTagClientObj…
Script 1.1.0 Az.DataShare {Get-AzDataShare, Get-AzDataShareAccount, Get-AzDataShareDataSet, Get-AzDataShareDataSetMapping…}
Script 5.4.1 Az.DesktopVirtualization {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdAppAttachPackage, Get-AzWvdApplication…}
Script 2.0.1 Az.DevCenter {Connect-AzDevCenterAdminCatalog, Connect-AzDevCenterAdminProjectCatalog, Deploy-AzDevCenterUserEnvironment, Get-AzDevCenterAdminAttachedN…
Script 1.1.0 Az.DevTestLabs {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy…}
Script 1.3.1 Az.Dns {Add-AzDnsRecordConfig, Get-AzDnsRecordSet, Get-AzDnsZone, New-AzDnsRecordConfig…}
Script 1.1.1 Az.DnsResolver {Get-AzDnsForwardingRuleset, Get-AzDnsForwardingRulesetForwardingRule, Get-AzDnsForwardingRulesetVirtualNetworkLink, Get-AzDnsResolver…}
Script 1.2.1 Az.ElasticSan {Add-AzElasticSanVolumeGroupNetworkRule, Get-AzElasticSan, Get-AzElasticSanSkuList, Get-AzElasticSanVolume…}
Script 2.2.0 Az.EventGrid {Disable-AzEventGridPartnerTopic, Enable-AzEventGridPartnerDestination, Enable-AzEventGridPartnerTopic, Get-AzEventGridCaCertificate…}
Script 5.2.0 Az.EventHub {New-AzEventHubAuthorizationRuleSASToken, Approve-AzEventHubPrivateEndpointConnection, Deny-AzEventHubPrivateEndpointConnection, Get-AzEve…
Script 1.12.0 Az.FrontDoor {Disable-AzFrontDoorCustomDomainHttps, Enable-AzFrontDoorCustomDomainHttps, Get-AzFrontDoor, Get-AzFrontDoorFrontendEndpoint…}
Script 4.2.0 Az.Functions {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting…}
Script 6.3.1 Az.HDInsight {Add-AzHDInsightClusterIdentity, Add-AzHDInsightComponentVersion, Add-AzHDInsightConfigValue, Add-AzHDInsightMetastore…}
Script 2.1.0 Az.HealthcareApis {Get-AzHealthcareApisService, Get-AzHealthcareApisWorkspace, Get-AzHealthcareDicomService, Get-AzHealthcareFhirDestination…}
Script 1.0.0 Az.HealthDataAIServices {Get-AzDeidService, New-AzDeidService, Remove-AzDeidService, Update-AzDeidService}
Script 2.8.0 Az.IotHub {Add-AzIotHubCertificate, Add-AzIotHubConfiguration, Add-AzIotHubDeployment, Add-AzIotHubDevice…}
Script 6.3.1 Az.KeyVault {Add-AzKeyVaultCertificate, Add-AzKeyVaultCertificateContact, Add-AzKeyVaultKey, Add-AzKeyVaultManagedStorageAccount…}
Script 2.4.0 Az.Kusto {Add-AzKustoClusterCalloutPolicy, Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfigurat…
Script 1.1.0 Az.LoadTesting {Get-AzLoad, New-AzLoad, Remove-AzLoad, Update-AzLoad}
Script 1.6.0 Az.LogicApp {Get-AzIntegrationAccount, Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration…
Script 1.2.0 Az.MachineLearning {Add-AzMlWebServiceRegionalProperty, Export-AzMlWebService, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlan…}
Script 1.2.0 Az.MachineLearningServices {Get-AzMLServiceQuota, Get-AzMLServiceUsage, Get-AzMLServiceVMSize, Get-AzMLWorkspace…}
Script 1.5.0 Az.Maintenance {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenancePublicConfiguration…}
Script 1.3.0 Az.ManagedServiceIdentity {Get-AzFederatedIdentityCredential, Get-AzSystemAssignedIdentity, Get-AzUserAssignedIdentity, Get-AzUserAssignedIdentityAssociatedResource…
Script 3.1.0 Az.ManagedServices {Get-AzManagedServicesAssignment, Get-AzManagedServicesDefinition, Get-AzManagedServicesMarketplaceDefinition, New-AzManagedServicesAssign…
Script 2.1.0 Az.MarketplaceOrdering {Get-AzMarketplaceTerms, Invoke-AzMarketplaceSignTerms, Set-AzMarketplaceTerms, Stop-AzMarketplaceTerms}
Script 1.2.0 Az.Media {Get-AzMediaService, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability, New-AzMediaService…}
Script 2.6.0 Az.Migrate {Get-AzMigrateDiscoveredServer, Get-AzMigrateHCIJob, Get-AzMigrateHCIReplicationFabric, Get-AzMigrateHCIServerReplication…}
Script 6.0.1 Az.Monitor {Add-AzLogProfile, Add-AzMetricAlertRule, Add-AzMetricAlertRuleV2, Add-AzWebtestAlertRule…}
Script 1.3.0 Az.MySql {Get-AzMySqlConfiguration, Get-AzMySqlConnectionString, Get-AzMySqlFirewallRule, Get-AzMySqlFlexibleServer…}
Script 7.14.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHttpSetting…
Script 1.1.0 Az.NetworkCloud {Deploy-AzNetworkCloudCluster, Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement, Enable-AzNetworkCloudStorageApplianceRemoteVe…
Script 1.2.0 Az.Nginx {Get-AzNginxCertificate, Get-AzNginxConfiguration, Get-AzNginxDeployment, Invoke-AzNginxAnalysisConfiguration…}
Script 1.2.0 Az.NotificationHubs {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential…}
Script 3.3.0 Az.OperationalInsights {Disable-AzOperationalInsightsIISLogCollection, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsLinuxP…
Script 1.1.0 Az.Oracle {Add-AzOracleCloudVMClusterVM, Get-AzOracleAutonomousDatabase, Get-AzOracleAutonomousDatabaseBackup, Get-AzOracleAutonomousDatabaseCharact…
Script 1.7.0 Az.PolicyInsights {Get-AzPolicyAttestation, Get-AzPolicyEvent, Get-AzPolicyMetadata, Get-AzPolicyRemediation…}
Script 1.2.0 Az.PostgreSql {Get-AzPostgreSqlConfiguration, Get-AzPostgreSqlConnectionString, Get-AzPostgreSqlFirewallRule, Get-AzPostgreSqlFlexibleServer…}
Script 2.1.0 Az.PowerBIEmbedded {Get-AzPowerBIEmbeddedCapacity, New-AzPowerBIEmbeddedCapacity, Remove-AzPowerBIEmbeddedCapacity, Resume-AzPowerBIEmbeddedCapacity…}
Script 1.2.0 Az.PrivateDns {Add-AzPrivateDnsRecordConfig, Get-AzPrivateDnsRecordSet, Get-AzPrivateDnsVirtualNetworkLink, Get-AzPrivateDnsZone…}
Script 7.5.0 Az.RecoveryServices {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disable-AzRecov…
Script 1.11.0 Az.RedisCache {Clear-AzRedisCache, Export-AzRedisCache, Get-AzRedisCache, Get-AzRedisCacheAccessPolicy…}
Script 1.4.1 Az.RedisEnterpriseCache {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheAccessPolicyAssignment, Get-AzRedisEnterpriseCacheDa…
Script 2.1.0 Az.Relay {Get-AzRelayAuthorizationRule, Get-AzRelayHybridConnection, Get-AzRelayKey, Get-AzRelayNamespace…}
Script 1.1.0 Az.ResourceGraph {Search-AzGraph, Get-AzResourceGraphQuery, New-AzResourceGraphQuery, Remove-AzResourceGraphQuery…}
Script 1.3.0 Az.ResourceMover {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequiredForResour…
Script 7.8.1 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script 1.8.0 Az.Security {Add-AzSecurityAdaptiveNetworkHardening, Add-AzSecuritySqlVulnerabilityAssessmentBaseline, Confirm-AzSecurityAutomation, Disable-AzIotSecu…
Script 3.2.0 Az.SecurityInsights {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, Get-AzSentinelAlertRuleTemplate, Get-AzSentinelAutomationRule…}
Script 4.1.0 Az.ServiceBus {New-AzServiceBusAuthorizationRuleSASToken, Test-AzServiceBusNameAvailability, Approve-AzServiceBusPrivateEndpointConnection, Complete-AzS…
Script 3.5.0 Az.ServiceFabric {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricManagedClusterClientCertificate, Add-AzServiceFabricManagedClusterNetworkSecurit…
Script 2.1.0 Az.SignalR {Get-AzSignalR, Get-AzSignalRKey, Get-AzSignalRUsage, New-AzSignalR…}
Script 6.0.1 Az.Sql {Add-AzSqlDatabaseToFailoverGroup, Add-AzSqlElasticJobStep, Add-AzSqlElasticJobTarget, Add-AzSqlInstanceKeyVaultKey…}
Script 2.4.0 Az.SqlVirtualMachine {Assert-AzSqlVMEntraAuth, Get-AzAvailabilityGroupListener, Get-AzSqlVM, Get-AzSqlVMGroup…}
Script 2.5.0 Az.StackHCI {Add-AzStackHCIVMAttestation, Disable-AzStackHCIAttestation, Disable-AzStackHCIRemoteSupport, Enable-AzStackHCIAttestation…}
Script 1.1.0 Az.StackHCIVM {Add-AzStackHCIVMVirtualMachineDataDisk, Add-AzStackHCIVMVirtualMachineNetworkInterface, Get-AzStackHCIVMImage, Get-AzStackHCIVMLogicalNet…
Script 8.1.0 Az.Storage {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFileHandle…
Script 1.5.0 Az.StorageMover {Get-AzStorageMover, Get-AzStorageMoverAgent, Get-AzStorageMoverEndpoint, Get-AzStorageMoverJobDefinition…}
Script 2.4.1 Az.StorageSync {Get-AzStorageSyncCloudEndpoint, Get-AzStorageSyncGroup, Get-AzStorageSyncServer, Get-AzStorageSyncServerEndpoint…}
Script 2.1.0 Az.StreamAnalytics {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnaly…
Script 2.1.0 Az.Support {Get-AzSupportChatTranscript, Get-AzSupportChatTranscriptsNoSubscription, Get-AzSupportCommunication, Get-AzSupportCommunicationsNoSubscri…
Script 3.1.1 Az.Synapse {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBaseline, Co…
Script 1.3.0 Az.TrafficManager {Add-AzTrafficManagerCustomHeaderToEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Add-AzTrafficManagerEndpointConfig, Add-AzTrafficM…
Script 3.3.0 Az.Websites {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironment…}Error output
Resolve-AzError
DEBUG: 10:37:48 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 10:37:48 AM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 10:37:48 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Resolve-AzError]. Returning default value [True].
DEBUG: 10:37:48 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 7
Message : Fetch default CVM Policy failed, Vault [vault_name] does not exist in current subscription. If this vault exists in your tenant, please switch to the correct subscription.
StackTrace : at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.GetDefaultCVMPolicy()
at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.NormalizeKeySourceParameters()
at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Exceptions.AzPSArgumentException
InvocationInfo : {Add-AzKeyVaultKey}
Line : Add-AzKeyVaultKey -VaultName ncamillucci-mhsm -Name testpowershell -KeyType RSA -Exportable -Size 3072 -UseDefaultCVMPolicy
Position : At line:1 char:1
+ Add-AzKeyVaultKey -VaultName ncamillucci-mhsm -Name testpowershell -K …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 3
Message : Fetch default CVM Policy failed, Vault [vault_name] does not exist in current subscription. If this vault exists in your tenant, please switch to the correct subscription.
StackTrace : at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.GetDefaultCVMPolicy()
at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.NormalizeKeySourceParameters()
at Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Exceptions.AzPSArgumentException
InvocationInfo : {Add-AzKeyVaultKey}
Line : Add-AzKeyVaultKey -VaultName ncamillucci-mhsm -Name testpowershell -KeyType RSA -Exportable -Size 3072 -UseDefaultCVMPolicy
Position : At line:1 char:1
+ Add-AzKeyVaultKey -VaultName ncamillucci-mhsm -Name testpowershell -K …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 3
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 2
Message : Cannot find a variable with the name 'DEBUG_PREFIX'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RuntimeToDefaultOSType'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RequiredStorageEndpoints'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'DefaultFunctionsVersion'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'ReservedFunctionAppSettingNames'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'AllowedStorageTypes'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'DefaultCentauriImage'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RuntimeToFormattedName'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'SetDefaultValueParameterWarningMessage'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'DEBUG_PREFIX'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RuntimeToDefaultOSType'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RequiredStorageEndpoints'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'DefaultFunctionsVersion'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'ReservedFunctionAppSettingNames'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'AllowedStorageTypes'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'DefaultCentauriImage'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'RuntimeToFormattedName'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Cannot find a variable with the name 'SetDefaultValueParameterWarningMessage'.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
Position : At [path]\PowerShell\Modules\Az.Functions\4.2.0\Functions.Autorest\custom\HelperFunctions.ps1:47 char:15
+ … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 2
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:4.0.2; CommandName: Resolve-AzError; PSVersion: 7.4.6; IsSuccess: True; Duration: 00:00:00.4284723; SanitizeDuration: 00:00:00.0051143
DEBUG: 10:37:49 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 10:37:49 AM - ResolveError end processing.
Metadata
Metadata
Assignees
Labels
Azure PS TeamKeyVaultcustomer-reportedneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that