Skip to content

New-AzCloudService command failing with Invalid packageUrl error #23803

Open

Description

Description

With the release of Az module version 11.1.0, we are seeing that the new cloud service deployment is failing with invalid packageURL error when PackageFile parameter is used. When PackageFile parameter is used in the New-AzCloudService command, the file contents from the file path, which is passed as an argument, are uploaded to a storage account and a SAS URL is generated which is passed to the backend as part of the PUT call as part of the PackageURL parameter. This packageURL is validated in the CloudService backend service.

There was a breaking change in the Storage module, where the prefix "?" was dropped from the generated SAS URL. This affected the backend validation of packageURL in CloudService. In cloudService backend, the Query part of the pakcageURL is used for validation, but with the dropping of "?" prefix, the query part of the URL is set as empty, resulting into error.

Previous format of cspkgUrl: ?
Latest format of cspkgUrl:

This breaking change from the Storage module needs to be handled in the Az.CloudService as well.

Issue script & Debug output

PS C:\WINDOWS\system32> $DebugPreference='Continue'
PS C:\WINDOWS\system32> New-AzCloudService `
>>  -Name "csestestbi-1" `
>> -ResourceGroupName "csestest111" `
>> -Location "East US" `
>> -DefinitionFile "C:\Users\bigoyal\Downloads\SampleCS\app.publish\ServiceDefinition.csdef" `
>>  -ConfigurationFile "C:\Users\bigoyal\Downloads\SampleCS\app.publish\ServiceConfiguration.Cloud.cscfg" `
>>  -PackageFile "C:\Users\bigoyal\Downloads\SampleCS\app.publish\AzureCloudServiceSample.cspkg" `
>> -StorageAccount "csestestsacc"
DEBUG: 13:57:55 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - GetAzureRMContextCommand end processing.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
DEBUG: 13:57:55 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:57:55 - GetAzureRMContextCommand end processing.
HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/providers/Microsoft.Storage/storageAccounts?api-version=2023-01-01

Headers:
x-ms-client-request-id        : 8f49d5e4-09f5-46bf-83ce-f19b68c325f4
accept-language               : en-US

Body:


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

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-original-request-ids     : 9065c165-cdff-4a84-adc4-b28e01285d63,288ffb90-2cb3-42d8-b7da-9aa4579576c4
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-request-id               : 8dc67441-ea3d-4cec-a7cf-be282bae4baf
x-ms-correlation-request-id   : 8dc67441-ea3d-4cec-a7cf-be282bae4baf
x-ms-routing-request-id       : CENTRALINDIA:20231221T082812Z:8dc67441-ea3d-4cec-a7cf-be282bae4baf
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 21 Dec 2023 08:28:11 GMT

Body:
{
  "value": [
    {
      "sku": {
        "name": "Standard_RAGRS",
        "tier": "Standard"
      },
      "kind": "StorageV2",
      "id": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Storage/storageAccounts/csestestsacc",
      "name": "csestestsacc",
      "type": "Microsoft.Storage/storageAccounts",
      "location": "eastus",
      "tags": {},
      "properties": {
        "defaultToOAuthAuthentication": false,
        "keyCreationTime": {
          "key1": "2023-12-21T06:52:52.689287Z",
          "key2": "2023-12-21T06:52:52.689287Z"
        },
        "allowCrossTenantReplication": false,
        "privateEndpointConnections": [],
        "minimumTlsVersion": "TLS1_0",
        "allowBlobPublicAccess": true,
        "allowSharedKeyAccess": true,
        "networkAcls": {
          "ipv6Rules": [],
          "bypass": "AzureServices",
          "virtualNetworkRules": [],
          "ipRules": [],
          "defaultAction": "Allow"
        },
        "supportsHttpsTrafficOnly": true,
        "encryption": {
          "services": {
            "file": {
              "keyType": "Account",
              "enabled": true,
              "lastEnabledTime": "2023-12-21T06:52:52.7049146Z"
            },
            "blob": {
              "keyType": "Account",
              "enabled": true,
              "lastEnabledTime": "2023-12-21T06:52:52.7049146Z"
            }
          },
          "keySource": "Microsoft.Storage"
        },
        "accessTier": "Hot",
        "provisioningState": "Succeeded",
        "creationTime": "2023-12-21T06:52:52.5487085Z",
        "primaryEndpoints": {
          "dfs": "https://csestestsacc.dfs.core.windows.net/",
          "web": "https://csestestsacc.z13.web.core.windows.net/",
          "blob": "https://csestestsacc.blob.core.windows.net/",
          "queue": "https://csestestsacc.queue.core.windows.net/",
          "table": "https://csestestsacc.table.core.windows.net/",
          "file": "https://csestestsacc.file.core.windows.net/"
        },
        "primaryLocation": "eastus",
        "statusOfPrimary": "available",
        "secondaryLocation": "westus",
        "statusOfSecondary": "available",
        "secondaryEndpoints": {
          "dfs": "https://csestestsacc-secondary.dfs.core.windows.net/",
          "web": "https://csestestsacc-secondary.z13.web.core.windows.net/",
          "blob": "https://csestestsacc-secondary.blob.core.windows.net/",
          "queue": "https://csestestsacc-secondary.queue.core.windows.net/",
          "table": "https://csestestsacc-secondary.table.core.windows.net/"
        }
      }
    },
    {
      "sku": {
        "name": "Standard_LRS",
        "tier": "Standard"
      },
      "kind": "StorageV2",
      "id": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/storageaccountsrg/providers/Microsoft.Storage/storageAccounts/rawimagessa",
      "name": "rawimagessa",
      "type": "Microsoft.Storage/storageAccounts",
      "location": "southindia",
      "tags": {},
      "properties": {
        "defaultToOAuthAuthentication": false,
        "publicNetworkAccess": "Enabled",
        "keyCreationTime": {
          "key1": "2022-04-18T05:06:46.4850636Z",
          "key2": "2022-04-18T05:06:46.4850636Z"
        },
        "allowCrossTenantReplication": true,
        "privateEndpointConnections": [],
        "minimumTlsVersion": "TLS1_2",
        "allowBlobPublicAccess": false,
        "allowSharedKeyAccess": true,
        "networkAcls": {
          "ipv6Rules": [],
          "resourceAccessRules": [
            {
              "tenantId": "5037f69b-afcc-4dab-ad40-a9b04a7f65f8",
              "resourceId": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourcegroups/ocrparselogicapprg/providers/Microsoft.Logic/workflows/ocrparsing"
            }
          ],
          "bypass": "AzureServices",
          "virtualNetworkRules": [
            {
              "id": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/workspace/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/subnet-1",
              "action": "Allow",
              "state": "Succeeded"
            }
          ],
          "ipRules": [
            {
              "value": "137.117.47.94",
              "action": "Allow"
            }                                                                                                                                                                                                                                                                                                                          ],                                                                                                                                                                                                                                                                                                                           "defaultAction": "Allow"                                                                                                                                                                                                                                                                                                   },                                                                                                                                                                                                                                                                                                                           "supportsHttpsTrafficOnly": true,
        "encryption": {
          "requireInfrastructureEncryption": false,
          "services": {
            "file": {                                                                                                                                                                                                                                                                                                                      "keyType": "Account",                                                                                                                                                                                                                                                                                                        "enabled": true,                                                                                                                                                                                                                                                                                                             "lastEnabledTime": "2022-04-18T05:06:46.4850636Z"                                                                                                                                                                                                                                                                          },                                                                                                                                                                                                                                                                                                                           "blob": {
              "keyType": "Account",
              "enabled": true,
              "lastEnabledTime": "2022-04-18T05:06:46.4850636Z"
            }                                                                                                                                                                                                                                                                                                                          },                                                                                                                                                                                                                                                                                                                           "keySource": "Microsoft.Storage"                                                                                                                                                                                                                                                                                           },                                                                                                                                                                                                                                                                                                                           "accessTier": "Hot",                                                                                                                                                                                                                                                                                                         "provisioningState": "Succeeded",                                                                                                                                                                                                                                                                                            "creationTime": "2022-04-18T05:06:46.4225642Z",                                                                                                                                                                                                                                                                              "primaryEndpoints": {
          "dfs": "https://rawimagessa.dfs.core.windows.net/",
          "web": "https://rawimagessa.z30.web.core.windows.net/",
          "blob": "https://rawimagessa.blob.core.windows.net/",
          "queue": "https://rawimagessa.queue.core.windows.net/",
          "table": "https://rawimagessa.table.core.windows.net/",
          "file": "https://rawimagessa.file.core.windows.net/"
        },
        "primaryLocation": "southindia",
        "statusOfPrimary": "available"
      }
    }
  ]
}

DEBUG: 13:58:14 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:14 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Storage:6.0.1; CommandName: Get-AzStorageAccount; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:01.1653814
DEBUG: 13:58:14 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:14 - GetAzureStorageAccountCommand end processing.
DEBUG: 13:58:14 - Init Operation Context for 'GetAzureStorageContainerCommand' with client request id  Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d. If you want to get more details, please add "-Debug" to your command.
DEBUG: 13:58:14 - GetAzureStorageContainerCommand begin processing with ParameterSet 'ContainerName'.
DEBUG: 13:58:14 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:15 - Use storage account 'csestestsacc' from storage context.
DEBUG: Request [bfc031bd-2616-4462-a17a-6c47312ddede] GET https://csestestsacc.blob.core.windows.net/cloudservicecontainer?restype=container
x-ms-version:2023-08-03
Accept:application/xml
User-Agent:AzurePowershell/v1.0.0,azsdk-net-Storage.Blobs/12.18.0 (.NET Framework 4.8.9181.0; Microsoft Windows 10.0.22621 )
x-ms-client-request-id:bfc031bd-2616-4462-a17a-6c47312ddede
x-ms-return-client-request-id:true
x-ms-date:Thu, 21 Dec 2023 08:28:15 GMT
Authorization:REDACTED
client assembly: Azure.Storage.Blobs
DEBUG: Error response [bfc031bd-2616-4462-a17a-6c47312ddede] 404 The specified container does not exist. (01.0s)
x-ms-request-id:0def464e-801e-0098-05e7-33f2ce000000
x-ms-client-request-id:bfc031bd-2616-4462-a17a-6c47312ddede
x-ms-version:2023-08-03
x-ms-error-code:ContainerNotFound
Content-Length:225
Content-Type:application/xml
Date:Thu, 21 Dec 2023 08:28:13 GMT
Server:Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
DEBUG: 13:58:16 - [ConfigManager] Got nothing from [DisableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 13:58:16 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:16 - Init Operation Context for 'NewAzureStorageContainerCommand' with client request id  Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d. If you want to get more details, please add "-Debug" to your command.
DEBUG: 13:58:16 - NewAzureStorageContainerCommand begin processing with ParameterSet 'ContainerName'.
DEBUG: 13:58:16 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:16 - Use storage account 'csestestsacc' from storage context.
DEBUG: Request [6e3447c7-a2df-497a-9705-b5ac6d7d2859] PUT https://csestestsacc.blob.core.windows.net/cloudservicecontainer?restype=container
x-ms-blob-public-access:blob
x-ms-version:2023-08-03
Accept:application/xml
x-ms-client-request-id:6e3447c7-a2df-497a-9705-b5ac6d7d2859
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Storage.Blobs/12.18.0 (.NET Framework 4.8.9181.0; Microsoft Windows 10.0.22621 )
x-ms-date:Thu, 21 Dec 2023 08:28:16 GMT
Authorization:REDACTED
client assembly: Azure.Storage.Blobs
DEBUG: Response [6e3447c7-a2df-497a-9705-b5ac6d7d2859] 201 Created (00.3s)
x-ms-request-id:0def4798-801e-0098-1ee7-33f2ce000000
x-ms-client-request-id:6e3447c7-a2df-497a-9705-b5ac6d7d2859
x-ms-version:2023-08-03
Content-Length:0
Date:Thu, 21 Dec 2023 08:28:13 GMT
ETag:"0x8DC01FEC67FB8E8"
Last-Modified:Thu, 21 Dec 2023 08:28:14 GMT
Server:Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
DEBUG: 13:58:17 - NewAzureStorageContainerCommand end processing, Start 9 remote calls. Finish 9 remote calls. Elapsed time 426725076.74 ms. Client operation id: Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d.
DEBUG: 13:58:17 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:17 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Storage:6.0.1; CommandName: New-AzStorageContainer; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:01.2457766
DEBUG: 13:58:17 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:17 - NewAzureStorageContainerCommand end processing.
DEBUG: 13:58:17 - Init Operation Context for 'SetAzureBlobContentCommand' with client request id  Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d. If you want to get more details, please add "-Debug" to your command.
DEBUG: 13:58:17 - Use storage account 'csestestsacc' from storage context.
DEBUG: 13:58:23 - SetAzureBlobContentCommand end processing, Start 10 remote calls. Finish 10 remote calls. Elapsed time 426731325.16 ms. Client operation id: Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d.
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:23 - SetAzureBlobContentCommand end processing.
DEBUG: 13:58:23 - Init Operation Context for 'NewAzureStorageBlobSasTokenCommand' with client request id  Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d. If you want to get more details, please add "-Debug" to your command.
DEBUG: 13:58:23 - NewAzureStorageBlobSasTokenCommand begin processing with ParameterSet 'BlobNameWithPermission'.
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:23 - Use storage account 'csestestsacc' from storage context.
DEBUG: 13:58:23 - NewAzureStorageBlobSasTokenCommand end processing, Start 10 remote calls. Finish 10 remote calls. Elapsed time 426731325.16 ms. Client operation id: Azure-Storage-PowerShell-fc805049-e998-4e87-9655-9ca3eb3d2a1d.
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Storage:6.0.1; CommandName: New-AzStorageBlobSASToken; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:00.0071353
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:23 - NewAzureStorageBlobSasTokenCommand end processing.
DEBUG: 13:58:23 - GetAzurePublicIpAddressCommand begin processing with ParameterSet 'NoExpandStandAloneIp'.
DEBUG: 13:58:23 - using account id '<RedacedMailId>'...
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '<RedacedMailId>', environment: 'AzureCloud', tenant: '5037f69b-afcc-4dab-ad40-a9b04a7f65f8'
DEBUG: 13:58:23 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 13:58:23 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'5037f69b-afcc-4dab-ad40-a9b04a7f65f8', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'<RedacedMailId>'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
=== 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 - False
HomeAccountId - False
CorrelationId - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c] === Token Acquisition (SilentRequest) started:
  Scopes: https://management.core.windows.net//.default
 Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c] Access token is not expired. Returning the found cache entry. [Current time (12/21/2023 08:28:23) - Expiration Time (12/21/2023 09:53:18 +00:00) - Extended Expiration Time
(12/21/2023 09:53:18 +00:00)]
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c]
 === Token Acquisition finished successfully:
DEBUG: False MSAL 4.49.1.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2023-12-21 08:28:23Z - 46ff0ccc-5e90-4425-a3c6-aadfe00c697c]  AT expiration time: 21-12-2023 09:53:18 +00:00, scopes: https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default. source: Cache
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2023-12-21T09:53:18.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '5037f69b-afcc-4dab-ad40-a9b04a7f65f8', UserId: '<RedacedMailId>'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Network/publicIPAddresses/azurecloudservicesampleIP?api-version=2023-06-01

Headers:
x-ms-client-request-id        : 3e105f0c-1a1c-48b4-83fc-9261494dc6ba
accept-language               : en-US

Body:


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

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-request-id               : 56d56aa5-1f59-45c3-b801-5bb4a0669a83
x-ms-correlation-request-id   : ec778477-bddc-4af3-b265-0634dac2aee5
x-ms-arm-service-request-id   : 709dc00e-3d49-408b-b273-e9bf9377214d
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Cache-Control                 : no-cache
ETag                          : W/"41eea3de-3550-4215-824f-6da4f8a77792"
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-routing-request-id       : CENTRALINDIA:20231221T082823Z:ec778477-bddc-4af3-b265-0634dac2aee5
X-Content-Type-Options        : nosniff
Date                          : Thu, 21 Dec 2023 08:28:23 GMT

Body:
{
  "name": "azurecloudservicesampleIP",
  "id": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Network/publicIPAddresses/azurecloudservicesampleIP",
  "etag": "W/\"41eea3de-3550-4215-824f-6da4f8a77792\"",
  "location": "eastus",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "b6e29875-19a5-4046-ae91-418cfe13a7b1",
    "ipAddress": "52.152.224.185",
    "publicIPAddressVersion": "IPv4",
    "publicIPAllocationMethod": "Static",
    "idleTimeoutInMinutes": 4,
    "ipTags": []
  },
  "type": "Microsoft.Network/publicIPAddresses",
  "sku": {
    "name": "Basic",
    "tier": "Regional"
  }
}

DEBUG: 13:58:25 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:25 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Network:7.1.0; CommandName: Get-AzPublicIpAddress; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:02.2562687
DEBUG: 13:58:25 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:58:25 - GetAzurePublicIpAddressCommand end processing.
Creating the Cloud Service resource.
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing:
DEBUG: CmdletProcessRecordStart:
DEBUG: CmdletGetPipeline:
DEBUG: CmdletBeforeAPICall:
DEBUG: URLCreated: /subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Compute/cloudServices/csestestbi-1?api-version=2022-09-04
DEBUG: RequestCreated: /subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Compute/cloudServices/csestestbi-1?api-version=2022-09-04
DEBUG: HeaderParametersAdded:
DEBUG: BodyContentSet:
DEBUG: 13:58:25 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Compute/cloudServices/csestestbi-1?api-version=2022-09-04

Headers:
x-ms-unique-id                : 34
x-ms-client-request-id        : 59067e76-6a30-46e7-a98a-02dd1fa8c0e6
CommandName                   : Az.CloudService\New-AzCloudService
FullCommandName               : New-AzCloudService_CreateExpanded
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v0.0.0,PSVersion/v5.1.22621.2506,Az.CloudService/2.0.0

Body:
{
  "properties": {
    "packageUrl": "https://csestestsacc.blob.core.windows.net/cloudservicecontainer/csestestbi-1.cspkgsv=2023-08-03&st=2023-12-21T08%3A28%3A17Z&se=2024-12-21T08%3A28%3A17Z&sr=b&sp=rwd&sig=<Redact>",
    "configuration": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<!--\r\n  **********************************************************************************************\r\n\r\n  This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\r\n\r\n  Changes to this file may cause
incorrect behavior and will be lost if the file is regenerated.\r\n\r\n  **********************************************************************************************\r\n-->\r\n<ServiceConfiguration serviceName=\"AzureCloudServiceSample\"
xmlns=\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\" osFamily=\"6\" osVersion=\"*\" schemaVersion=\"2015-04.2.6\">\r\n  <Role name=\"WebRole1\">\r\n    <Instances count=\"1\" />\r\n    <ConfigurationSettings>\r\n      <Setting
name=\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\" value=\"UseDevelopmentStorage=true\" />\r\n    </ConfigurationSettings>\r\n  </Role>\r\n  <Role name=\"WorkerRole1\">\r\n    <Instances count=\"1\" />\r\n    <ConfigurationSettings>\r\n      <Setting
name=\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\" value=\"UseDevelopmentStorage=true\" />\r\n    </ConfigurationSettings>\r\n  </Role>\r\n  <NetworkConfiguration>\r\n    <VirtualNetworkSite name=\"azurecloudservicesampleVNet\" />\r\n    <AddressAssignments>\r\n      <InstanceAddress
roleName=\"WebRole1\">\r\n        <Subnets>\r\n          <Subnet name=\"default\" />\r\n        </Subnets>\r\n      </InstanceAddress>\r\n      <InstanceAddress roleName=\"WorkerRole1\">\r\n        <Subnets>\r\n          <Subnet name=\"default\" />\r\n        </Subnets>\r\n      </InstanceAddress>\r\n
<ReservedIPs>\r\n        <ReservedIP name=\"azurecloudservicesampleIP\" />\r\n      </ReservedIPs>\r\n    </AddressAssignments>\r\n  </NetworkConfiguration>\r\n</ServiceConfiguration>\r\n",
    "roleProfile": {
      "roles": [
        {
          "sku": {
            "name": "Standard_D1_v2",
            "tier": "Standard",
            "capacity": 1
          },
          "name": "WebRole1"
        },
        {
          "sku": {
            "name": "Standard_D1_v2",
            "tier": "Standard",
            "capacity": 1
          },
          "name": "WorkerRole1"
        }
      ]
    },
    "networkProfile": {
      "loadBalancerConfigurations": [
        {
          "properties": {
            "frontendIpConfigurations": [
              {
                "properties": {
                  "publicIPAddress": {
                    "id": "/subscriptions/79c691da-dc23-4a88-acc1-a747f80acef1/resourceGroups/csestest111/providers/Microsoft.Network/publicIPAddresses/azurecloudservicesampleIP"
                  }
                },
                "name": "csestestbi-1LbFe"
              }
            ]
          },
          "name": "csestestbi-1LB"
        }
      ]
    }
  },
  "location": "East US"
}

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

Status Code:
BadRequest

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 2d1e1d33-3bd4-4ed2-afc7-58405c42980b
Cache-Control                 : no-cache
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id   : a18c02ec-22b7-452a-a1ec-f154fc583ae8
x-ms-routing-request-id       : CENTRALINDIA:20231221T082826Z:a18c02ec-22b7-452a-a1ec-f154fc583ae8
X-Content-Type-Options        : nosniff
Date                          : Thu, 21 Dec 2023 08:28:25 GMT

Body:
{
  "error": {
    "code": "InvalidParameter",
    "message": "The value of parameter packageUrl is invalid."
  }
}

DEBUG: ResponseCreated:
DEBUG: BeforeResponseDispatch:
Az.CloudService\New-AzCloudService : The value of parameter packageUrl is invalid.
At C:\Program Files\WindowsPowerShell\Modules\Az.CloudService\2.0.0\custom\New-AzCloudService.ps1:330 char:9
+         Az.CloudService\New-AzCloudService @PSBoundParameters
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: ({ ResourceGroup....CloudService }:<>f__AnonymousType18`4) [New-AzCloudService_CreateExpanded], Exception
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.NewAzCloudService_CreateExpanded
DEBUG: [Finally]: Getting exception 'Microsoft.Azure.Commands.Common.Exceptions.AzPSCloudException: InternalException' from response
DEBUG: Finally:
DEBUG: CmdletAfterAPICall:
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd:
DEBUG: CmdletProcessRecordEnd:
DEBUG: AzureQoSEvent:  Module: Az.CloudService:2.0.0; CommandName: New-AzCloudService; PSVersion: 5.1.22621.2506; IsSuccess: False; Duration: 00:00:02.2915381; Exception: InternalException;
PS C:\WINDOWS\system32>

Environment data

PS C:\WINDOWS\system32> $PSVersionTable

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

Module versions

PS C:\WINDOWS\system32> Get-Module Az*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     11.1.0     Az
Script     2.13.2     Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script     2.0.0      Az.Advisor                          {Disable-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration, Get-AzAdvisorRecommendation...}
Script     6.0.0      Az.Aks                              {Disable-AzAksAddOn, Enable-AzAksAddOn, Get-AzAksCluster, Get-AzAksNodePool...}
Script     1.1.4      Az.AnalysisServices                 {Add-AzAnalysisServicesAccount, Export-AzAnalysisServicesInstanceLog, Get-AzAnalysisServicesServer, New-AzAnalysisServicesFirewallConfig...}
Script     4.0.2      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...}
Script     1.0.0      Az.App                              {Disable-AzContainerAppRevision, Enable-AzContainerAppRevision, Get-AzContainerApp, Get-AzContainerAppAuthConfig...}
Script     1.3.0      Az.AppConfiguration                 {Clear-AzAppConfigurationDeletedStore, Get-AzAppConfigurationDeletedStore, Get-AzAppConfigurationKey, Get-AzAppConfigurationKeyValue...}
Script     2.2.2      Az.ApplicationInsights              {Get-AzApplicationInsights, Get-AzApplicationInsightsApiKey, Get-AzApplicationInsightsContinuousExport, Get-AzApplicationInsightsLinkedStorageAccount...}
Script     1.0.0      Az.ArcResourceBridge                {Get-AzArcResourceBridge, Get-AzArcResourceBridgeApplianceCredential, Get-AzArcResourceBridgeCredential, Get-AzArcResourceBridgeTelemetryConfig...}
Script     2.0.0      Az.Attestation                      {Add-AzAttestationPolicySigner, Get-AzAttestationPolicy, Get-AzAttestationPolicySigners, Remove-AzAttestationPolicySigner...}
Script     1.0.0      Az.Automanage                       {Get-AzAutomanageBestPractice, Get-AzAutomanageConfigProfile, Get-AzAutomanageConfigProfileAssignment, Get-AzAutomanageConfigProfileHciAssignment...}
Script     1.9.1      Az.Automation                       {Export-AzAutomationDscConfiguration, Export-AzAutomationDscNodeReportContent, Export-AzAutomationRunbook, Get-AzAutomationAccount...}
Script     3.5.0      Az.Batch                            {Disable-AzBatchAutoScale, Disable-AzBatchComputeNodeScheduling, Disable-AzBatchJob, Disable-AzBatchJobSchedule...}
Script     2.0.3      Az.Billing                          {Get-AzBillingAccount, Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzBillingProfile...}
Script     3.1.1      Az.Cdn                              {Clear-AzCdnEndpointContent, Clear-AzFrontDoorCdnEndpointContent, Disable-AzCdnCustomDomainCustomHttps, Enable-AzCdnCustomDomainCustomHttps...}
Script     2.0.0      Az.CloudService                     {Get-AzCloudService, Get-AzCloudServiceInstanceView, Get-AzCloudServiceNetworkInterface, Get-AzCloudServiceOSFamily...}
Script     1.14.1     Az.CognitiveServices                {Add-AzCognitiveServicesAccountNetworkRule, Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountCommitmentPlan, Get-AzCognitiveServicesAccountDeployment...}
Script     7.1.0      Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk...}
Script     1.0.0      Az.ConfidentialLedger               {Get-AzConfidentialLedger, New-AzConfidentialLedger, New-AzConfidentialLedgerAADBasedSecurityPrincipalObject, New-AzConfidentialLedgerCertBasedSecurityPrincipalObject...}
Script     4.0.0      Az.ContainerInstance                {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability...}
Script     4.1.2      Az.ContainerRegistry                {Connect-AzContainerRegistry, Get-AzContainerRegistryManifest, Get-AzContainerRegistryRepository, Get-AzContainerRegistryTag...}
Script     1.13.0     Az.CosmosDB                         {Get-AzCosmosDBAccount, Get-AzCosmosDBAccountKey, Get-AzCosmosDBCassandraKeyspace, Get-AzCosmosDBCassandraKeyspaceThroughput...}
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeBandwidthSchedule, Get-AzDataBoxEdgeDevice, Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeOrder...}
Script     1.7.1      Az.Databricks                       {Get-AzDatabricksAccessConnector, Get-AzDatabricksOutboundNetworkDependenciesEndpoint, Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace...}
Script     1.18.0     Az.DataFactory                      {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActivityWindow...}
Script     1.0.3      Az.DataLakeAnalytics                {Add-AzDataLakeAnalyticsDataSource, Add-AzDataLakeAnalyticsFirewallRule, Get-AzDataLakeAnalyticsAccount, Get-AzDataLakeAnalyticsCatalogItem...}
Script     1.3.0      Az.DataLakeStore                    {Add-AzDataLakeStoreFirewallRule, Add-AzDataLakeStoreItemContent, Add-AzDataLakeStoreTrustedIdProvider, Add-AzDataLakeStoreVirtualNetworkRule...}
Script     2.1.0      Az.DataProtection                   {Backup-AzDataProtectionBackupInstanceAdhoc, Edit-AzDataProtectionPolicyRetentionRuleClientObject, Edit-AzDataProtectionPolicyTagClientObject, Edit-AzDataProtectionPolicyTriggerClientObject...}
Script     1.0.1      Az.DataShare                        {Get-AzDataShare, Get-AzDataShareAccount, Get-AzDataShareDataSet, Get-AzDataShareDataSetMapping...}
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, Get-AzDeploymentManagerRollout, Get-AzDeploymentManagerService, Get-AzDeploymentManagerServiceTopology...}
Script     4.2.0      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdAppAttachPackage, Get-AzWvdApplication...}
Script     1.0.0      Az.DevCenter                        {Deploy-AzDevCenterUserEnvironment, Get-AzDevCenterAdminAttachedNetwork, Get-AzDevCenterAdminCatalog, Get-AzDevCenterAdminDevBoxDefinition...}
Script     1.0.2      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}
Script     1.2.0      Az.Dns                              {Add-AzDnsRecordConfig, Get-AzDnsRecordSet, Get-AzDnsZone, New-AzDnsRecordConfig...}
Script     1.6.0      Az.EventGrid                        {Enable-AzEventGridPartnerTopic, Get-AzEventGridChannel, Get-AzEventGridDomain, Get-AzEventGridDomainKey...}
Script     4.2.0      Az.EventHub                         {New-AzEventHubAuthorizationRuleSASToken, Approve-AzEventHubPrivateEndpointConnection, Deny-AzEventHubPrivateEndpointConnection, Get-AzEventHub...}
Script     1.10.0     Az.FrontDoor                        {Disable-AzFrontDoorCustomDomainHttps, Enable-AzFrontDoorCustomDomainHttps, Get-AzFrontDoor, Get-AzFrontDoorFrontendEndpoint...}
Script     4.0.7      Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...}
Script     6.0.2      Az.HDInsight                        {Add-AzHDInsightClusterIdentity, Add-AzHDInsightComponentVersion, Add-AzHDInsightConfigValue, Add-AzHDInsightMetastore...}
Script     2.0.0      Az.HealthcareApis                   {Get-AzHealthcareApisService, Get-AzHealthcareApisWorkspace, Get-AzHealthcareDicomService, Get-AzHealthcareFhirDestination...}
Script     2.7.5      Az.IotHub                           {Add-AzIotHubCertificate, Add-AzIotHubConfiguration, Add-AzIotHubDeployment, Add-AzIotHubDevice...}
Script     5.0.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Add-AzKeyVaultCertificateContact, Add-AzKeyVaultKey, Add-AzKeyVaultManagedStorageAccount...}
Script     2.3.0      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster...}
Script     1.0.0      Az.LoadTesting                      {Get-AzLoad, New-AzLoad, Remove-AzLoad, Update-AzLoad}
Script     1.5.0      Az.LogicApp                         {Get-AzIntegrationAccount, Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration...}
Script     1.1.3      Az.MachineLearning                  {Add-AzMlWebServiceRegionalProperty, Export-AzMlWebService, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlan...}
Script     1.0.0      Az.MachineLearningServices          {Get-AzMLServiceQuota, Get-AzMLServiceUsage, Get-AzMLServiceVMSize, Get-AzMLWorkspace...}
Script     1.4.1      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenancePublicConfiguration...}
Script     1.2.0      Az.ManagedServiceIdentity           {Get-AzFederatedIdentityCredential, Get-AzSystemAssignedIdentity, Get-AzUserAssignedIdentity, Get-AzUserAssignedIdentityAssociatedResource...}
Script     3.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, Get-AzManagedServicesDefinition, Get-AzManagedServicesMarketplaceDefinition, New-AzManagedServicesAssignment...}
Script     2.0.0      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Invoke-AzMarketplaceSignTerms, Set-AzMarketplaceTerms, Stop-AzMarketplaceTerms}
Script     1.1.2      Az.Media                            {Get-AzMediaService, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability, New-AzMediaService...}
Script     2.2.0      Az.Migrate                          {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationFabric...}
Script     5.0.0      Az.Monitor                          {Add-AzLogProfile, Add-AzMetricAlertRule, Add-AzMetricAlertRuleV2, Add-AzWebtestAlertRule...}
Script     1.1.1      Az.MySql                            {Get-AzMySqlConfiguration, Get-AzMySqlConnectionString, Get-AzMySqlFirewallRule, Get-AzMySqlFlexibleServer...}
Script     7.1.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHttpSetting, Add-AzApplicationGatewayBackendSetting...}
Script     1.0.0      Az.NetworkCloud                     {Deploy-AzNetworkCloudCluster, Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement, Enable-AzNetworkCloudStorageApplianceRemoteVendorManagement, Get-AzNetworkCloudAgentPool...}
Script     1.1.2      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}
Script     3.2.0      Az.OperationalInsights              {Disable-AzOperationalInsightsIISLogCollection, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsLinuxPerformanceCollection, Disable-AzOperationalInsightsLinuxSyslogCollection...}
Script     1.6.4      Az.PolicyInsights                   {Get-AzPolicyAttestation, Get-AzPolicyEvent, Get-AzPolicyMetadata, Get-AzPolicyRemediation...}
Script     1.1.0      Az.PostgreSql                       {Get-AzPostgreSqlConfiguration, Get-AzPostgreSqlConnectionString, Get-AzPostgreSqlFirewallRule, Get-AzPostgreSqlFlexibleServer...}
Script     2.0.0      Az.PowerBIEmbedded                  {Get-AzPowerBIEmbeddedCapacity, New-AzPowerBIEmbeddedCapacity, Remove-AzPowerBIEmbeddedCapacity, Resume-AzPowerBIEmbeddedCapacity...}
Script     1.0.4      Az.PrivateDns                       {Add-AzPrivateDnsRecordConfig, Get-AzPrivateDnsRecordSet, Get-AzPrivateDnsVirtualNetworkLink, Get-AzPrivateDnsZone...}
Script     6.6.2      Az.RecoveryServices                 {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disable-AzRecoveryServicesBackupAutoProtection...}
Script     1.8.1      Az.RedisCache                       {Export-AzRedisCache, Get-AzRedisCache, Get-AzRedisCacheFirewallRule, Get-AzRedisCacheKey...}
Script     1.2.0      Az.RedisEnterpriseCache             {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey...}
Script     2.0.0      Az.Relay                            {Get-AzRelayAuthorizationRule, Get-AzRelayHybridConnection, Get-AzRelayKey, Get-AzRelayNamespace...}
Script     1.2.0      Az.ResourceMover                    {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequiredForResources...}
Script     6.12.1     Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment...}
Script     1.5.1      Az.Security                         {Add-AzSecurityAdaptiveNetworkHardening, Add-AzSecuritySqlVulnerabilityAssessmentBaseline, Confirm-AzSecurityAutomation, Disable-AzIotSecurityAnalyticsAggregatedAlert...}
Script     3.1.1      Az.SecurityInsights                 {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, Get-AzSentinelAlertRuleTemplate, Get-AzSentinelAutomationRule...}
Script     3.0.0      Az.ServiceBus                       {New-AzServiceBusAuthorizationRuleSASToken, Test-AzServiceBusNameAvailability, Approve-AzServiceBusPrivateEndpointConnection, Complete-AzServiceBusMigration...}
Script     3.3.1      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricManagedClusterClientCertificate, Add-AzServiceFabricManagedClusterNetworkSecurityRule, Add-AzServiceFabricManagedNodeTypeVMExtension...}
Script     2.0.0      Az.SignalR                          {Get-AzSignalR, Get-AzSignalRKey, Get-AzSignalRUsage, New-AzSignalR...}
Script     4.12.0     Az.Sql                              {Add-AzSqlDatabaseToFailoverGroup, Add-AzSqlElasticJobStep, Add-AzSqlElasticJobTarget, Add-AzSqlInstanceKeyVaultKey...}
Script     2.1.0      Az.SqlVirtualMachine                {Get-AzAvailabilityGroupListener, Get-AzSqlVM, Get-AzSqlVMGroup, Invoke-AzRedeploySqlVM...}
Script     2.2.3      Az.StackHCI                         {Add-AzStackHCIVMAttestation, Disable-AzStackHCIAttestation, Disable-AzStackHCIRemoteSupport, Enable-AzStackHCIAttestation...}
Script     6.0.1      Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFileHandle...}
Script     1.2.0      Az.StorageMover                     {Get-AzStorageMover, Get-AzStorageMoverAgent, Get-AzStorageMoverEndpoint, Get-AzStorageMoverJobDefinition...}
Script     2.1.0      Az.StorageSync                      {Get-AzStorageSyncCloudEndpoint, Get-AzStorageSyncGroup, Get-AzStorageSyncServer, Get-AzStorageSyncServerEndpoint...}
Script     2.0.0      Az.StreamAnalytics                  {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnalyticsFunction...}
Script     1.0.0      Az.Support                          {Get-AzSupportProblemClassification, Get-AzSupportService, Get-AzSupportTicket, Get-AzSupportTicketCommunication...}
Script     3.0.4      Az.Synapse                          {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBaseline, Convert-AzSynapseSqlPoolVulnerabilityAssessmentScan...}
Script     1.2.2      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Add-AzTrafficManagerEndpointConfig, Add-AzTrafficManagerExpectedStatusCodeRange...}
Script     3.1.2      Az.Websites                         {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironment...}

Error output

PS C:\WINDOWS\system32> Resolve-AzError
DEBUG: 14:05:05 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 14:05:05 - using account id 'redactedmailid'...
DEBUG: 14:05:05 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].


   HistoryId: 74


Message        : [InvalidParameter] : The value of parameter packageUrl is invalid.
StackTrace     :
Exception      : System.Exception
InvocationInfo : {New-AzCloudService_CreateExpanded}
Line           :         Az.CloudService\New-AzCloudService @PSBoundParameters

Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.CloudService\2.0.0\custom\New-AzCloudService.ps1:330 char:9
                 +         Az.CloudService\New-AzCloudService @PSBoundParameters
                 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 74

Message        : Can not find the container 'cloudservicecontainer'.
StackTrace     :    at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageContainerCommand.<ListContainersByName>d__28.MoveNext()
                    at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageContainerCommand.PackCloudBlobContainerWithAcl(IEnumerable`1 containerList)
                    at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageContainerCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : Microsoft.WindowsAzure.Commands.Storage.Common.ResourceNotFoundException
InvocationInfo : {Get-AzStorageContainer}
Line           :                 $container = get-azstorageContainer -context $storageAccountObj.context -name $containerName -ErrorAction Stop

Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.CloudService\2.0.0\custom\New-AzCloudService.ps1:227 char:30
                 + ... container = get-azstorageContainer -context $storageAccountObj.contex ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Cloud Service (Ext)Service AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions