-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Azure PS TeamTrackingWe will track status and follow internallyWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Description
Description
After updating to the Az.ApiManagement Module version 4.0.5 the New-AzApiManagementProduct command fails validating on display name.
After doing some digging it looks to be related to an internal method for mapping a productContract Where the constructor has change order of properties.

sample script
$ctx = New-AzApiManagementContext -ResourceGroupName "rg-name" -ServiceName "service-name"
New-AzApiManagementProduct -Context $ctx -Title "product-title"Issue script & Debug output
PS C:\Users\adrianm> $DebugPreference = "Continue"
PS C:\Users\adrianm> New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default
value [True].
DEBUG: 08:34:49 - NewAzureApiManagementProduct begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 08:34:49 - using account id '***'...
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '***', environment:
'AzureCloud', tenant: '***'
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning
default value [False].
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default
value [True].
DEBUG: 08:34:49 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync -
TenantId:'***', Scopes:'https://management.core.windows.net//.default',
AuthorityHost:'https://login.microsoftonline.com/', UserId:'***'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
10f094c4-8298-4040-ae43-e55eeb129c2f] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
10f094c4-8298-4040-ae43-e55eeb129c2f] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
10f094c4-8298-4040-ae43-e55eeb129c2f] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
10f094c4-8298-4040-ae43-e55eeb129c2f] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
10f094c4-8298-4040-ae43-e55eeb129c2f] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[Runtime] WAM supported OS.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[RuntimeBroker] ListWindowsWorkAndSchoolAccounts option was not enabled.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
19d0a6ee-04c3-41bf-a351-3b39cd277a9b] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
Returning 1 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'.
CorrelationId(73a2bfb8-e5ab-4286-9911-6eb94250128e)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - True
HomeAccountId - False
CorrelationId - 73a2bfb8-e5ab-4286-9911-6eb94250128e
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Broker is configured and enabled, attempting to use broker instead.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[Runtime] WAM supported OS.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Can invoke broker. Will attempt to acquire token with broker.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0001] WARNING SetAuthorityUri:78 Initializing authority from URI
'https://login.microsoftonline.com/***/' without authority type, defaulting to MsSts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: 73a2bfb8-e5ab-4286-9911-6eb94250128e
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: start_time, Value: 2024-11-15T08:34:49.000Z
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: api_name, Value: ReadAccountById
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: authority_type, Value: Unknown
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: correlation_id, Value: 73a2bfb8-e5ab-4286-9911-6eb94250128e
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: broker_app_used, Value: false
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: stop_time, Value: 2024-11-15T08:34:49.000Z
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: is_successful, Value: true
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO LogTelemetryData:430 Key: request_duration, Value: 0
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO SetCorrelationId:258 Set correlation ID: 73a2bfb8-e5ab-4286-9911-6eb94250128e
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO EnqueueBackgroundRequest:1000 The original authority is
'https://login.microsoftonline.com/***'
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)'
Value: '(pii)'
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] INFO ModifyAndValidateAuthParameters:243 Authority Realm: ***
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0004] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1052 MsaDeviceOperationProvider is not
available. Not attempting to register the device.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO StorageTokenResponse:84 StorageTokenResponse account constructor invoked. This is only expected in
Runtime flows
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: 73a2bfb8-e5ab-4286-9911-6eb94250128e
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: start_time, Value: 2024-11-15T08:34:49.000Z
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: api_name, Value: AcquireTokenSilently
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: authority_type, Value: AAD
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: access_token_expiry_time, Value: 2024-11-15T09:43:36.000Z
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: read_token, Value: ID|AT
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: client_id, Value: ***
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: correlation_id, Value: 73a2bfb8-e5ab-4286-9911-6eb94250128e
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: broker_app_used, Value: false
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: stop_time, Value: 2024-11-15T08:34:49.000Z
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: original_authority, Value:
https://login.microsoftonline.com/***
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: request_eligible_for_broker, Value: true
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: additional_query_parameters_count, Value: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: storage_read, Value: DAC|DAT|DID
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: auth_flow, Value: AT
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: is_successful, Value: true
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: authorization_type, Value: WindowsIntegratedAuth
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:430 Key: request_duration, Value: 2
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:435 Printing Execution Flow:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[MSAL:0003] INFO LogTelemetryData:443
{"t":"4s7uc","tid":4,"ts":0,"l":2},{"t":"4sufd","tid":4,"ts":1,"s":2,"l":2},{"t":"4swgg","tid":4,"ts":1,"s":2,"l":2},{"
t":"4swgf","tid":4,"ts":1,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":1,"s":2,"l":2},{"t":"8b2yn","tid":3,"ts":1,"l":2},{"t"
:"8dqkx","tid":3,"ts":1,"l":2},{"t":"8dqik","tid":3,"ts":1,"l":2},{"t":"4q2di","tid":3,"ts":1,"l":2},{"t":"4qnng","tid"
:3,"ts":1,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":1,"l":2,"a":2,"ie":1},{"t":"8dqit","tid":3,"ts":1,"l":2},{"t":"
8b2ht","tid":3,"ts":1,"l":2},{"t":"4qnno","tid":3,"ts":1,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":3,"ts":3,"l":2,"a":2,"i
e":1},{"t":"6xuag","tid":3,"ts":3,"l":2}
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z]
[RuntimeBroker] WAM response status success
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Checking MsalTokenResponse returned from broker.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Success. Response contains an access token.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Checking client info returned from the server..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Saving token response to cache..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] AT expiration time: 15/11/2024 09:43:35 +00:00, scopes:
https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Broker
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9277.0 Microsoft Windows 10.0.22621 [2024-11-15 08:34:49Z -
73a2bfb8-e5ab-4286-9911-6eb94250128e] Fetched access token from host login.microsoftonline.com.
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId: ExpiresOn: 2024-11-15T09:43:35.1806917+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '***',
UserId: '***'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/***/resourceGroups/allpay-uks-infrastructur
e-rg-applicationhosting/providers/Microsoft.ApiManagement/service/***/products/e60319
c967754de887f56066b7c0f6c6?api-version=2021-08-01
Headers:
x-ms-client-request-id : 3932e537-3a87-49e4-b903-76afbed86843
accept-language : en-US
Body:
{
"properties": {
"subscriptionRequired": true
}
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Pragma : no-cache
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
x-ms-request-id : 26563875-ccf7-4e49-9aef-436fdbbcfd46
x-ms-ratelimit-remaining-subscription-writes: 199
x-ms-ratelimit-remaining-subscription-global-writes: 2999
x-ms-correlation-request-id : 26563875-ccf7-4e49-9aef-436fdbbcfd46
x-ms-routing-request-id : UKSOUTH:20241115T083449Z:26563875-ccf7-4e49-9aef-436fdbbcfd46
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 23F08E4A66A74F49B4D3B6D53A7F8701 Ref B: AMS231032607047 Ref C:
2024-11-15T08:34:49Z
Cache-Control : no-cache
Date : Fri, 15 Nov 2024 08:34:49 GMT
Body:
{
"error": {
"code": "ValidationError",
"message": "One or more fields contain incorrect values:",
"details": [
{
"code": "ValidationError",
"target": "name",
"message": "name (display name) should not be empty\""
}
]
}
}
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning
default value [False].
New-AzApiManagementProduct :
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: 26563875-ccf7-4e49-9aef-436fdbbcfd46
Error Details:
[Code= ValidationError, Message= name (display name) should not be empty", Target= name]
At line:1 char:1
+ New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (Microsoft.Azure...ExecuteCmdlet():ErrorResponseException) [New-AzApiManagem
entProduct], Exception
+ FullyQualifiedErrorId : Operation returned an invalid status code 'BadRequest',Microsoft.Azure.Commands.ApiManag
ement.ServiceManagement.Commands.NewAzureApiManagementProduct
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 08:34:49 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value
[True].
DEBUG: AzureQoSEvent: Module: Az.ApiManagement:4.0.5; CommandName: New-AzApiManagementProduct; PSVersion:
5.1.22621.4249; IsSuccess: False; Duration: 00:00:00.5751958; SanitizeDuration: 00:00:00; Exception:
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: 26563875-ccf7-4e49-9aef-436fdbbcfd46
Error Details:
[Code= ValidationError, Message= name (display name) should not be empty", Target= name]
;
DEBUG: 08:34:49 - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: 08:34:49 - NewAzureApiManagementProduct end processing.Environment data
PS C:\Users\adrianm> $psVersionTable
Name Value
---- -----
PSVersion 5.1.22621.4249
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.4249
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1Module versions
Get-Module Az*
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 3.0.5 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script 4.0.5 Az.ApiManagement {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...}Error output
PS C:\Users\adrianm> Resolve-AzError
DEBUG: 08:41:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 08:41:49 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 08:41:49 - using account id '***'...
DEBUG: 08:41:49 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The alias 'Resolve-Error' will be removed. Please use 'Resolve-AzError' instead.
- The change is expected to take effect in Az version : '13.0.0'
- The change is expected to take effect in Az.Accounts version : '4.0.0'
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
DEBUG: 08:41:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 5
Message :
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: 26563875-ccf7-4e49-9aef-436fdbbcfd46
Error Details:
[Code= ValidationError, Message= name (display name) should not be empty", Target= name]
StackTrace :
Exception : System.Exception
InvocationInfo : {New-AzApiManagementProduct}
Line : New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
Position : At line:1 char:1
+ New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
DEBUG: 08:41:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 3
Message :
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: 20287cae-1d7b-40bf-986d-19721c4d9268
Error Details:
[Code= ValidationError, Message= name (display name) should not be empty", Target= name]
StackTrace :
Exception : System.Exception
InvocationInfo : {New-AzApiManagementProduct}
Line : New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
Position : At line:1 char:1
+ New-AzApiManagementProduct -Context $ctx -Title "ADIRANS-TEST"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 3
DEBUG: 08:41:50 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 08:41:50 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:3.0.5; CommandName: Resolve-AzError; PSVersion: 5.1.22621.4249; IsSuccess: True; Duration: 00:00:00.1290056; SanitizeDuration: 00:00:00.0008502
DEBUG: 08:41:50 - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].Metadata
Metadata
Assignees
Labels
Azure PS TeamTrackingWe will track status and follow internallyWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported