diff --git a/src/containerapp/azext_containerapp/containerapp_auth_decorator.py b/src/containerapp/azext_containerapp/containerapp_auth_decorator.py new file mode 100644 index 00000000000..b09f85fe7eb --- /dev/null +++ b/src/containerapp/azext_containerapp/containerapp_auth_decorator.py @@ -0,0 +1,112 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from typing import Any, Dict + +from azure.cli.core.commands import AzCliCommand + +from ._client_factory import handle_raw_exception +from .base_resource import BaseResource + + +class ContainerAppAuthDecorator(BaseResource): + def __init__(self, cmd: AzCliCommand, client: Any, raw_parameters: Dict, models: str): + super().__init__(cmd, client, raw_parameters, models) + self.existing_auth = {} + + def show(self): + auth_settings = {} + try: + auth_settings = self.client.get(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(), container_app_name=self.get_argument_name(), auth_config_name="current")["properties"] + except: + pass + return auth_settings + + def construct_payload(self): + from ._utils import set_field_in_auth_settings, update_http_settings_in_auth_settings + self.existing_auth = {} + try: + self.existing_auth = self.client.get(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(), container_app_name=self.get_argument_name(), auth_config_name="current")["properties"] + except: + self.existing_auth["platform"] = {} + self.existing_auth["platform"]["enabled"] = True + self.existing_auth["globalValidation"] = {} + self.existing_auth["login"] = {} + + self.existing_auth = set_field_in_auth_settings(self.existing_auth, self.get_argument_set_string()) + + if self.get_argument_enabled() is not None: + if "platform" not in self.existing_auth: + self.existing_auth["platform"] = {} + self.existing_auth["platform"]["enabled"] = self.get_argument_enabled() + + if self.get_argument_runtime_version() is not None: + if "platform" not in self.existing_auth: + self.existing_auth["platform"] = {} + self.existing_auth["platform"]["runtimeVersion"] = self.get_argument_runtime_version() + + if self.get_argument_config_file_path() is not None: + if "platform" not in self.existing_auth: + self.existing_auth["platform"] = {} + self.existing_auth["platform"]["configFilePath"] = self.get_argument_config_file_path() + + if self.get_argument_unauthenticated_client_action() is not None: + if "globalValidation" not in self.existing_auth: + self.existing_auth["globalValidation"] = {} + self.existing_auth["globalValidation"]["unauthenticatedClientAction"] = self.get_argument_unauthenticated_client_action() + + if self.get_argument_redirect_provider() is not None: + if "globalValidation" not in self.existing_auth: + self.existing_auth["globalValidation"] = {} + self.existing_auth["globalValidation"]["redirectToProvider"] = self.get_argument_redirect_provider() + + if self.get_argument_excluded_paths() is not None: + if "globalValidation" not in self.existing_auth: + self.existing_auth["globalValidation"] = {} + self.existing_auth["globalValidation"]["excludedPaths"] = self.get_argument_excluded_paths().split(",") + + self.existing_auth = update_http_settings_in_auth_settings(self.existing_auth, self.get_argument_require_https(), + self.get_argument_proxy_convention(), self.get_argument_proxy_custom_host_header(), + self.get_argument_proxy_custom_proto_header()) + + def create_or_update(self): + try: + return self.client.create_or_update(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(), + container_app_name=self.get_argument_name(), auth_config_name="current", + auth_config_envelope=self.existing_auth) + except Exception as e: + handle_raw_exception(e) + + def get_argument_set_string(self): + return self.get_param("set_string") + + def get_argument_enabled(self): + return self.get_param("enabled") + + def get_argument_runtime_version(self): + return self.get_param("runtime_version") + + def get_argument_config_file_path(self): + return self.get_param("config_file_path") + + def get_argument_unauthenticated_client_action(self): + return self.get_param("unauthenticated_client_action") + + def get_argument_redirect_provider(self): + return self.get_param("redirect_provider") + + def get_argument_require_https(self): + return self.get_param("require_https") + + def get_argument_proxy_convention(self): + return self.get_param("proxy_convention") + + def get_argument_proxy_custom_host_header(self): + return self.get_param("proxy_custom_host_header") + + def get_argument_proxy_custom_proto_header(self): + return self.get_param("proxy_custom_proto_header") + + def get_argument_excluded_paths(self): + return self.get_param("excluded_paths") diff --git a/src/containerapp/azext_containerapp/custom.py b/src/containerapp/azext_containerapp/custom.py index d87f2ac8ea1..5d8a9e75b8d 100644 --- a/src/containerapp/azext_containerapp/custom.py +++ b/src/containerapp/azext_containerapp/custom.py @@ -34,6 +34,7 @@ from msrestazure.tools import parse_resource_id, is_valid_resource_id from msrest.exceptions import DeserializationError +from .containerapp_auth_decorator import ContainerAppAuthDecorator from .containerapp_decorator import ContainerAppCreateDecorator, BaseContainerAppDecorator from ._client_factory import handle_raw_exception, handle_non_404_exception from ._clients import ManagedEnvironmentClient, ContainerAppClient, GitHubActionClient, DaprComponentClient, StorageClient, AuthClient, WorkloadProfileClient, ContainerAppsJobClient @@ -5297,64 +5298,28 @@ def update_auth_config(cmd, resource_group_name, name, set_string=None, enabled= redirect_provider=None, require_https=None, proxy_convention=None, proxy_custom_host_header=None, proxy_custom_proto_header=None, excluded_paths=None): - from ._utils import set_field_in_auth_settings, update_http_settings_in_auth_settings - existing_auth = {} - try: - existing_auth = AuthClient.get(cmd=cmd, resource_group_name=resource_group_name, container_app_name=name, auth_config_name="current")["properties"] - except: - existing_auth["platform"] = {} - existing_auth["platform"]["enabled"] = True - existing_auth["globalValidation"] = {} - existing_auth["login"] = {} - - existing_auth = set_field_in_auth_settings(existing_auth, set_string) - - if enabled is not None: - if "platform" not in existing_auth: - existing_auth["platform"] = {} - existing_auth["platform"]["enabled"] = enabled - - if runtime_version is not None: - if "platform" not in existing_auth: - existing_auth["platform"] = {} - existing_auth["platform"]["runtimeVersion"] = runtime_version - - if config_file_path is not None: - if "platform" not in existing_auth: - existing_auth["platform"] = {} - existing_auth["platform"]["configFilePath"] = config_file_path - - if unauthenticated_client_action is not None: - if "globalValidation" not in existing_auth: - existing_auth["globalValidation"] = {} - existing_auth["globalValidation"]["unauthenticatedClientAction"] = unauthenticated_client_action - - if redirect_provider is not None: - if "globalValidation" not in existing_auth: - existing_auth["globalValidation"] = {} - existing_auth["globalValidation"]["redirectToProvider"] = redirect_provider - - if excluded_paths is not None: - if "globalValidation" not in existing_auth: - existing_auth["globalValidation"] = {} - existing_auth["globalValidation"]["excludedPaths"] = excluded_paths.split(",") + raw_parameters = locals() + containerapp_auth_decorator = ContainerAppAuthDecorator( + cmd=cmd, + client=AuthClient, + raw_parameters=raw_parameters, + models="azext_containerapp._sdk_models" + ) - existing_auth = update_http_settings_in_auth_settings(existing_auth, require_https, - proxy_convention, proxy_custom_host_header, - proxy_custom_proto_header) - try: - return AuthClient.create_or_update(cmd=cmd, resource_group_name=resource_group_name, container_app_name=name, auth_config_name="current", auth_config_envelope=existing_auth) - except Exception as e: - handle_raw_exception(e) + containerapp_auth_decorator.construct_payload() + return containerapp_auth_decorator.create_or_update() def show_auth_config(cmd, resource_group_name, name): - auth_settings = {} - try: - auth_settings = AuthClient.get(cmd=cmd, resource_group_name=resource_group_name, container_app_name=name, auth_config_name="current")["properties"] - except: - pass - return auth_settings + raw_parameters = locals() + containerapp_auth_decorator = ContainerAppAuthDecorator( + cmd=cmd, + client=AuthClient, + raw_parameters=raw_parameters, + models="azext_containerapp._sdk_models" + ) + + return containerapp_auth_decorator.show() # Compose diff --git a/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_auth_e2e.yaml b/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_auth_e2e.yaml new file mode 100644 index 00000000000..b2555fe7bbd --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_auth_e2e.yaml @@ -0,0 +1,3322 @@ +interactions: +- request: + body: '{"location": "eastus", "properties": {"retentionInDays": 30, "sku": {"name": + "PerGB2018"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor log-analytics workspace create + Connection: + - keep-alive + Content-Length: + - '91' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004?api-version=2021-12-01-preview + response: + body: + string: '{"properties":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-07-26T05:42:32.5615537Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-07-26T09:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-07-26T05:42:32.5615537Z","modifiedDate":"2023-07-26T05:42:32.5615537Z"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004","name":"containerapp-env000004","type":"Microsoft.OperationalInsights/workspaces"}' + headers: + access-control-allow-origin: + - '*' + api-supported-versions: + - 2021-12-01-preview + cache-control: + - no-cache + content-length: + - '851' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004?api-version=2021-12-01-preview + pragma: + - no-cache + request-context: + - appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor log-analytics workspace create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004?api-version=2021-12-01-preview + response: + body: + string: '{"properties":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-07-26T05:42:32.5615537Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-07-26T09:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-07-26T05:42:32.5615537Z","modifiedDate":"2023-07-26T05:42:32.5615537Z"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004","name":"containerapp-env000004","type":"Microsoft.OperationalInsights/workspaces"}' + headers: + access-control-allow-origin: + - '*' + api-supported-versions: + - 2021-12-01-preview + cache-control: + - no-cache + content-length: + - '851' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor log-analytics workspace get-shared-keys + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.OperationalInsights/workspaces/containerapp-env000004/sharedKeys?api-version=2020-08-01 + response: + body: + string: '{"primarySharedKey":"U017sZj7ibN4wvIMwsjBoE2r0KHHEuj/q5WtgNXhT7AzPKOsGpaaPt1vMrvTW4WE249B8qq56VMgCpi8fyRt5g==","secondarySharedKey":"c9xpqRJwyDmOSlKUM04rhnN+ugNmgh21R1KPbHXCJS+MCZDj9iJYyRhdqF0cB037rag0naZPvtjl3ipydm65iQ=="}' + headers: + access-control-allow-origin: + - '*' + api-supported-versions: + - 2015-03-20, 2020-08-01, 2020-10-01, 2021-06-01, 2022-10-01 + cache-control: + - no-cache + content-length: + - '223' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "tags": null, "properties": {"daprAIInstrumentationKey": + null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", + "logAnalyticsConfiguration": {"customerId": "40a12bea-18fe-45c4-8814-07d153049fe4", + "sharedKey": "U017sZj7ibN4wvIMwsjBoE2r0KHHEuj/q5WtgNXhT7AzPKOsGpaaPt1vMrvTW4WE249B8qq56VMgCpi8fyRt5g=="}}, + "customDomainConfiguration": null, "workloadProfiles": null, "zoneRedundant": + false}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + Content-Length: + - '446' + Content-Type: + - application/json + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","name":"containerapp-env000002","type":"Microsoft.App/managedEnvironments","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:42:39.2428968Z","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:42:39.2428968Z"},"properties":{"provisioningState":"Waiting","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"calmdune-4051d9ec.eastus.azurecontainerapps.io","staticIp":"20.241.251.188","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.10.0"},"daprConfiguration":{"version":"1.10.8"},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/managedEnvironments/containerapp-env000002/eventstream","customDomainConfiguration":{"customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":null,"firstPartyConfiguration":null,"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + cache-control: + - no-cache + content-length: + - '1567' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-async-operation-timeout: + - PT15M + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"InProgress","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '284' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"InProgress","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '284' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"InProgress","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '284' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"InProgress","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '284' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"InProgress","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '284' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:42:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationStatuses/d6dea9e1-1671-4846-b859-e6dee44094a5","name":"d6dea9e1-1671-4846-b859-e6dee44094a5","status":"Succeeded","startTime":"2023-07-26T05:42:42.8763895"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '283' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env create + Connection: + - keep-alive + ParameterSetName: + - -g -n --logs-workspace-id --logs-workspace-key + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","name":"containerapp-env000002","type":"Microsoft.App/managedEnvironments","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:42:39.2428968","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:42:39.2428968"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"calmdune-4051d9ec.eastus.azurecontainerapps.io","staticIp":"20.241.251.188","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.10.0"},"daprConfiguration":{"version":"1.10.8"},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/managedEnvironments/containerapp-env000002/eventstream","customDomainConfiguration":{"customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":null,"firstPartyConfiguration":null,"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '1567' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp env show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","name":"containerapp-env000002","type":"Microsoft.App/managedEnvironments","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:42:39.2428968","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:42:39.2428968"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"calmdune-4051d9ec.eastus.azurecontainerapps.io","staticIp":"20.241.251.188","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.10.0"},"daprConfiguration":{"version":"1.10.8"},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/managedEnvironments/containerapp-env000002/eventstream","customDomainConfiguration":{"customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":null,"firstPartyConfiguration":null,"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '1567' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","name":"containerapp-env000002","type":"Microsoft.App/managedEnvironments","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:42:39.2428968","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:42:39.2428968"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"calmdune-4051d9ec.eastus.azurecontainerapps.io","staticIp":"20.241.251.188","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"40a12bea-18fe-45c4-8814-07d153049fe4","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.10.0"},"daprConfiguration":{"version":"1.10.8"},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/managedEnvironments/containerapp-env000002/eventstream","customDomainConfiguration":{"customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":null,"firstPartyConfiguration":null,"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '1567' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "East US", "identity": {"type": "None", "userAssignedIdentities": + null}, "properties": {"environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002", + "configuration": {"secrets": null, "activeRevisionsMode": "single", "ingress": + {"fqdn": null, "external": true, "targetPort": 80, "transport": "auto", "exposedPort": + null, "traffic": null, "customDomains": null, "ipSecurityRestrictions": null, + "stickySessions": null}, "dapr": null, "registries": null, "service": null}, + "template": {"revisionSuffix": null, "containers": [{"image": "mcr.microsoft.com/k8se/quickstart:latest", + "name": "containerapp-auth000003", "command": null, "args": null, "env": null, + "resources": null, "volumeMounts": null}], "initContainers": null, "scale": + null, "volumes": null, "serviceBinds": null}, "workloadProfileName": null}, + "tags": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + Content-Length: + - '943' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215Z","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:18.4010215Z"},"properties":{"provisioningState":"InProgress","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"","latestReadyRevisionName":"","latestRevisionFqdn":"","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":null,"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577?api-version=2023-04-01-preview&azureAsyncOperation=true + cache-control: + - no-cache + content-length: + - '2203' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-async-operation-timeout: + - PT15M + x-ms-ratelimit-remaining-subscription-resource-requests: + - '699' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577","name":"8006b89c-9336-4dd4-a440-0f88984ca577","status":"InProgress","startTime":"2023-07-26T05:43:19.7379047"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '278' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577","name":"8006b89c-9336-4dd4-a440-0f88984ca577","status":"InProgress","startTime":"2023-07-26T05:43:19.7379047"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '278' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577?api-version=2023-04-01-preview&azureAsyncOperation=true + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/8006b89c-9336-4dd4-a440-0f88984ca577","name":"8006b89c-9336-4dd4-a440-0f88984ca577","status":"Succeeded","startTime":"2023-07-26T05:43:19.7379047"}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp create + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment --image --ingress --target-port + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:18.4010215"},"properties":{"provisioningState":"Succeeded","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":null,"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '2343' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:18.4010215"},"properties":{"provisioningState":"Succeeded","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":null,"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '2343' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"error":{"code":"AuthConfigNotFound","message":"AuthConfig current + was not found under container app containerapp-auth000003."}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:18.4010215"},"properties":{"provisioningState":"Succeeded","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":null,"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '2343' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/listSecrets?api-version=2023-04-01-preview + response: + body: + string: '{"value":[]}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003", + "name": "containerapp-auth000003", "type": "Microsoft.App/containerApps", "location": + "East US", "systemData": {"createdBy": "xinyupang@microsoft.com", "createdByType": + "User", "createdAt": "2023-07-26T05:43:18.4010215", "lastModifiedBy": "xinyupang@microsoft.com", + "lastModifiedByType": "User", "lastModifiedAt": "2023-07-26T05:43:18.4010215"}, + "properties": {"provisioningState": "Succeeded", "runningStatus": "Running", + "managedEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002", + "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002", + "workloadProfileName": null, "outboundIpAddresses": ["20.253.120.255"], "latestRevisionName": + "containerapp-auth000003--pi2vpmn", "latestReadyRevisionName": "containerapp-auth000003--pi2vpmn", + "latestRevisionFqdn": "containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io", + "customDomainVerificationId": "D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00", + "configuration": {"secrets": [{"name": "microsoft-provider-authentication-secret", + "value": "c0d23eb5-ea9f-4a4d-9519-bfa0a422c491", "keyVaultUrl": "", "identity": + ""}], "activeRevisionsMode": "Single", "ingress": {"fqdn": "containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io", + "external": true, "targetPort": 80, "exposedPort": 0, "transport": "Auto", "traffic": + [{"weight": 100, "latestRevision": true}], "customDomains": null, "allowInsecure": + false, "ipSecurityRestrictions": null, "corsPolicy": null, "clientCertificateMode": + null, "stickySessions": null}, "registries": null, "dapr": null, "maxInactiveRevisions": + null, "service": null}, "template": {"revisionSuffix": "", "terminationGracePeriodSeconds": + null, "containers": [{"image": "mcr.microsoft.com/k8se/quickstart:latest", "name": + "containerapp-auth000003", "resources": {"cpu": 0.5, "memory": "1Gi", "ephemeralStorage": + "2Gi"}}], "initContainers": null, "scale": {"minReplicas": null, "maxReplicas": + 10, "rules": null}, "volumes": null, "serviceBinds": null}, "eventStreamEndpoint": + "https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"}, + "identity": {"type": "None"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + Content-Length: + - '2594' + Content-Type: + - application/json + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:42.2330287Z"},"properties":{"provisioningState":"InProgress","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":[{"name":"microsoft-provider-authentication-secret"}],"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/9a5a3228-4b47-4d2b-8e8b-f44a9757b6f0?api-version=2023-04-01-preview&azureAsyncOperation=true + cache-control: + - no-cache + content-length: + - '2394' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-async-operation-timeout: + - PT15M + x-ms-ratelimit-remaining-subscription-resource-requests: + - '699' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: '{"properties": {"platform": {"enabled": true}, "globalValidation": {}, + "login": {}, "identityProviders": {"azureActiveDirectory": {"registration": + {"clientId": "c0d23eb5-ea9f-4a4d-9519-bfa0a422c491", "clientSecretSettingName": + "microsoft-provider-authentication-secret", "openIdIssuer": "https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/"}}}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth microsoft update + Connection: + - keep-alive + Content-Length: + - '355' + Content-Type: + - application/json + ParameterSetName: + - -g --name --client-id --client-secret --issuer --yes + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '712' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp secret list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp secret list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:42.2330287"},"properties":{"provisioningState":"InProgress","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":[{"name":"microsoft-provider-authentication-secret"}],"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '2393' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '712' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth update + Connection: + - keep-alive + ParameterSetName: + - -g -n --unauthenticated-client-action + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '712' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"platform": {"enabled": true}, "globalValidation": {"unauthenticatedClientAction": + "AllowAnonymous"}, "identityProviders": {"azureActiveDirectory": {"registration": + {"openIdIssuer": "https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/", + "clientId": "c0d23eb5-ea9f-4a4d-9519-bfa0a422c491", "clientSecretSettingName": + "microsoft-provider-authentication-secret"}, "validation": {"defaultAuthorizationPolicy": + {"allowedApplications": []}}, "isAutoProvisioned": false}}, "login": {"preserveUrlFragmentsForLogins": + false}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth update + Connection: + - keep-alive + Content-Length: + - '543' + Content-Type: + - application/json + ParameterSetName: + - -g -n --unauthenticated-client-action + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{"unauthenticatedClientAction":"AllowAnonymous"},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{"unauthenticatedClientAction":"AllowAnonymous"},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth update + Connection: + - keep-alive + ParameterSetName: + - -g -n --proxy-convention --redirect-provider --unauthenticated-client-action + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{"unauthenticatedClientAction":"AllowAnonymous"},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:43:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"platform": {"enabled": true}, "globalValidation": {"unauthenticatedClientAction": + "AllowAnonymous", "redirectToProvider": "Facebook"}, "identityProviders": {"azureActiveDirectory": + {"registration": {"openIdIssuer": "https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/", + "clientId": "c0d23eb5-ea9f-4a4d-9519-bfa0a422c491", "clientSecretSettingName": + "microsoft-provider-authentication-secret"}, "validation": {"defaultAuthorizationPolicy": + {"allowedApplications": []}}, "isAutoProvisioned": false}}, "login": {"preserveUrlFragmentsForLogins": + false}, "httpSettings": {"forwardProxy": {"convention": "Standard"}}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp auth update + Connection: + - keep-alive + Content-Length: + - '639' + Content-Type: + - application/json + ParameterSetName: + - -g -n --proxy-convention --redirect-provider --unauthenticated-client-action + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003/authConfigs/current","name":"current","type":"Microsoft.App/containerapps/authconfigs","properties":{"platform":{"enabled":true},"globalValidation":{"unauthenticatedClientAction":"AllowAnonymous","redirectToProvider":"Facebook"},"identityProviders":{"azureActiveDirectory":{"registration":{"openIdIssuer":"https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/","clientId":"c0d23eb5-ea9f-4a4d-9519-bfa0a422c491","clientSecretSettingName":"microsoft-provider-authentication-secret"},"validation":{"defaultAuthorizationPolicy":{"allowedApplications":[]}},"isAutoProvisioned":false}},"login":{"preserveUrlFragmentsForLogins":false},"httpSettings":{"forwardProxy":{"convention":"Standard"}}}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:44:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.App","namespace":"Microsoft.App","authorizations":[{"applicationId":"7e3bc4fd-85a3-4192-b177-5b8bfc87f42c","roleDefinitionId":"39a74f72-b40f-4bdc-b639-562fe2260bf0"},{"applicationId":"3734c1a4-2bed-4998-a37a-ff1a9e7bf019","roleDefinitionId":"5c779a4f-5cb2-4547-8c41-478d9be8ba90"},{"applicationId":"55ebbb62-3b9c-49fd-9b87-9595226dd4ac","roleDefinitionId":"e49ca620-7992-4561-a7df-4ed67dad77b5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"operations","locations":["North + Central US (Stage)","Central US EUAP","East US 2 EUAP","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-04-01-preview","2023-02-01","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"managedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedEnvironments/managedCertificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"containerApps","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["Central US EUAP","East + US 2 EUAP","North Central US (Stage)","West US 2","Southeast Asia","Sweden + Central","Canada Central","West Europe","North Europe","East US","East US + 2","East Asia","Australia East","Germany West Central","Japan East","UK South","West + US","Central US","North Central US","South Central US","Korea Central","Brazil + South","West US 3","France Central","South Africa North","Norway East","Switzerland + North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/managedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-03-01","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/containerappsjobOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"connectedEnvironments","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connectedEnvironments/certificates","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectedEnvironmentOperationResults","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/connectedEnvironmentOperationStatuses","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","North Central US","East + US","East Asia","West Europe"],"apiVersions":["2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/billingMeters","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview","2022-01-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"},{"resourceType":"locations/availableManagedEnvironmentsWorkloadProfileTypes","locations":["Central + US EUAP","East US 2 EUAP","North Central US (Stage)","West US 2","Southeast + Asia","Sweden Central","Canada Central","West Europe","North Europe","East + US","East US 2","East Asia","Australia East","Germany West Central","Japan + East","UK South","West US","Central US","North Central US","South Central + US","Korea Central","Brazil South","West US 3","France Central","South Africa + North","Norway East","Switzerland North","UAE North"],"apiVersions":["2023-05-02-preview","2023-05-01","2023-04-01-preview","2022-11-01-preview","2022-10-01","2022-06-01-preview"],"defaultApiVersion":"2023-04-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:44:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - containerapp show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.10.11 (Windows-10-10.0.22621-SP0) AZURECLI/2.50.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerApps/containerapp-auth000003?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/containerapps/containerapp-auth000003","name":"containerapp-auth000003","type":"Microsoft.App/containerApps","location":"East + US","systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-07-26T05:43:18.4010215","lastModifiedBy":"xinyupang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T05:43:42.2330287"},"properties":{"provisioningState":"Succeeded","runningStatus":"Running","managedEnvironmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","environmentId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.App/managedEnvironments/containerapp-env000002","workloadProfileName":null,"outboundIpAddresses":["20.253.120.255"],"latestRevisionName":"containerapp-auth000003--pi2vpmn","latestReadyRevisionName":"containerapp-auth000003--pi2vpmn","latestRevisionFqdn":"containerapp-auth000003--pi2vpmn.calmdune-4051d9ec.eastus.azurecontainerapps.io","customDomainVerificationId":"D3F71C85EB6552E36A89A3E4A080C3CFB00181670B659B0003264FC673AA9B00","configuration":{"secrets":[{"name":"microsoft-provider-authentication-secret"}],"activeRevisionsMode":"Single","ingress":{"fqdn":"containerapp-auth000003.calmdune-4051d9ec.eastus.azurecontainerapps.io","external":true,"targetPort":80,"exposedPort":0,"transport":"Auto","traffic":[{"weight":100,"latestRevision":true}],"customDomains":null,"allowInsecure":false,"ipSecurityRestrictions":null,"corsPolicy":null,"clientCertificateMode":null,"stickySessions":null},"registries":null,"dapr":null,"maxInactiveRevisions":null,"service":null},"template":{"revisionSuffix":"","terminationGracePeriodSeconds":null,"containers":[{"image":"mcr.microsoft.com/k8se/quickstart:latest","name":"containerapp-auth000003","resources":{"cpu":0.5,"memory":"1Gi","ephemeralStorage":"2Gi"}}],"initContainers":null,"scale":{"minReplicas":null,"maxReplicas":10,"rules":null},"volumes":null,"serviceBinds":null},"eventStreamEndpoint":"https://eastus.azurecontainerapps.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/containerApps/containerapp-auth000003/eventstream"},"identity":{"type":"None"}}' + headers: + api-supported-versions: + - 2022-01-01-preview, 2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, + 2023-04-01-preview, 2023-05-01, 2023-05-02-preview + cache-control: + - no-cache + content-length: + - '2392' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 05:44:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/containerapp/azext_containerapp/tests/latest/test_containerapp_auth_commands.py b/src/containerapp/azext_containerapp/tests/latest/test_containerapp_auth_commands.py new file mode 100644 index 00000000000..e372ecdad69 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/test_containerapp_auth_commands.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +from azure.cli.testsdk.scenario_tests import AllowLargeResponse +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, JMESPathCheck) + +from .common import TEST_LOCATION +from .utils import create_containerapp_env + + +class ContainerAppAuthTest(ScenarioTest): + @AllowLargeResponse(8192) + @ResourceGroupPreparer(location=TEST_LOCATION) + def test_containerapp_auth_e2e(self, resource_group): + self.cmd('configure --defaults location={}'.format(TEST_LOCATION)) + env = self.create_random_name(prefix='containerapp-env', length=24) + app = self.create_random_name(prefix='containerapp-auth', length=24) + + create_containerapp_env(self, env, resource_group) + + self.cmd('containerapp create -g {} -n {} --environment {} --image mcr.microsoft.com/k8se/quickstart:latest --ingress external --target-port 80'.format(resource_group, app, env)) + + client_id = 'c0d23eb5-ea9f-4a4d-9519-bfa0a422c491' + client_secret = 'c0d23eb5-ea9f-4a4d-9519-bfa0a422c491' + issuer = 'https://sts.windows.net/54826b22-38d6-4fb2-bad9-b7983a3e9c5a/' + + self.cmd( + 'containerapp auth microsoft update -g {} --name {} --client-id {} --client-secret {} --issuer {} --yes' + .format(resource_group, app, client_id, client_secret, issuer), checks=[ + JMESPathCheck('registration.clientId', client_id), + JMESPathCheck('registration.clientSecretSettingName', + "microsoft-provider-authentication-secret"), + JMESPathCheck('registration.openIdIssuer', issuer), + ]) + + self.cmd('containerapp secret list -g {} -n {}'.format(resource_group, app), checks=[ + JMESPathCheck('length(@)', 1), + JMESPathCheck('[0].name', "microsoft-provider-authentication-secret") + ]) + + self.cmd('containerapp auth show -g {} -n {}'.format(resource_group, app), checks=[ + JMESPathCheck('identityProviders.azureActiveDirectory.registration.clientId', client_id), + JMESPathCheck('identityProviders.azureActiveDirectory.registration.clientSecretSettingName', + "microsoft-provider-authentication-secret"), + JMESPathCheck('identityProviders.azureActiveDirectory.registration.openIdIssuer', issuer), + ]) + + self.cmd('containerapp auth update -g {} -n {} --unauthenticated-client-action AllowAnonymous'.format(resource_group, app), checks=[ + JMESPathCheck('name', "current"), + JMESPathCheck('properties.globalValidation.unauthenticatedClientAction', "AllowAnonymous"), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.clientId', client_id), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.clientSecretSettingName', + "microsoft-provider-authentication-secret"), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.openIdIssuer', issuer), + ]) + + self.cmd('containerapp auth show -g {} -n {}'.format(resource_group, app), checks=[ + JMESPathCheck('globalValidation.unauthenticatedClientAction', "AllowAnonymous"), + JMESPathCheck('identityProviders.azureActiveDirectory.registration.clientId', client_id), + JMESPathCheck('identityProviders.azureActiveDirectory.registration.clientSecretSettingName', + "microsoft-provider-authentication-secret"), + JMESPathCheck('identityProviders.azureActiveDirectory.registration.openIdIssuer', issuer), + ]) + + self.cmd('containerapp auth update -g {} -n {} --proxy-convention Standard --redirect-provider Facebook --unauthenticated-client-action AllowAnonymous'.format( + resource_group, app), checks=[ + JMESPathCheck('name', 'current'), + JMESPathCheck('properties.httpSettings.forwardProxy.convention', 'Standard'), + JMESPathCheck('properties.globalValidation.redirectToProvider', 'Facebook'), + JMESPathCheck('properties.globalValidation.unauthenticatedClientAction', 'AllowAnonymous'), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.clientId', client_id), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.clientSecretSettingName', "microsoft-provider-authentication-secret"), + JMESPathCheck('properties.identityProviders.azureActiveDirectory.registration.openIdIssuer', issuer), + ]) + + self.cmd('containerapp show -g {} -n {}'.format(resource_group, app), checks=[ + JMESPathCheck('properties.provisioningState', "Succeeded") + ]) diff --git a/src/containerapp/azext_containerapp/tests/latest/test_containerapp_scenario.py b/src/containerapp/azext_containerapp/tests/latest/test_containerapp_scenario.py index 38241a766ce..a17afbef262 100644 --- a/src/containerapp/azext_containerapp/tests/latest/test_containerapp_scenario.py +++ b/src/containerapp/azext_containerapp/tests/latest/test_containerapp_scenario.py @@ -87,13 +87,6 @@ def test_containerapp_e2e(self, resource_group): JMESPathCheck('length(properties.configuration.secrets)', 2) ]) - self.cmd('containerapp auth update -g {} -n {} --proxy-convention Standard --redirect-provider Facebook --unauthenticated-client-action AllowAnonymous'.format(resource_group, containerapp_name), checks=[ - JMESPathCheck('name', 'current'), - JMESPathCheck('properties.httpSettings.forwardProxy.convention', 'Standard'), - JMESPathCheck('properties.globalValidation.redirectToProvider', 'Facebook'), - JMESPathCheck('properties.globalValidation.unauthenticatedClientAction', 'AllowAnonymous') - ]) - # TODO rename @AllowLargeResponse(8192)