Open eclipse439 opened 2 years ago
Command Name az deployment sub delete
az deployment sub delete
Errors: Command says it's successful in deleting the deployment, but the deployment never gets deleted.
Debug Log:
cli.knack.cli: Command arguments: ['deployment', 'sub', 'delete', '--name', 'fake', '--debug'] cli.knack.cli: __init__ debug log: Enable color in terminal. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f1fd4629c80>, <function OutputProducer.on_global_arguments at 0x7f1fd41557b8>, <function CLIQuery.on_global_arguments at 0x7f1fd41738c8>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'deployment': ['azure.cli.command_modules.resource'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: resource 0.046 40 187 cli.azure.cli.core: Total (1) 0.046 40 187 cli.azure.cli.core: Loaded 40 groups, 187 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : deployment sub delete cli.azure.cli.core: Command table: deployment sub delete cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f1fd3008158>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/rajohnson/.azure/commands/2021-11-04.22-46-42.deployment_sub_delete.26159.log'. az_command_data_logger: command args: deployment sub delete --name {} --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f1fd302e0d0>, <function register_global_query_examples_argument.<locals>.register_query_examples at 0x7f1fd2fa0840>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f1fd2fa08c8>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f1fd2fa09d8>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f1fd4155840>, <function CLIQuery.handle_query_parameter at 0x7f1fd4173950>, <function register_global_query_examples_argument.<locals>.handle_example_parameter at 0x7f1fd2fa07b8>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f1fd2fa0950>] cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443 urllib3.connectionpool: https://login.microsoftonline.com:443 "GET /subscription-id/v2.0/.well-known/openid-configuration HTTP/1.1" 200 1753 msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/subid/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/subid/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/subid/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/subid/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/subid/oauth2/v2.0/devicecode', 'http_logout_suppo'rted': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/subid/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/subid/kerberos', 'tenant_region_scope': 'WW', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'} cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} msal.application: Cache hit an AT msal.telemetry: Generate or reuse correlation_id: 223baf9d-d79f-448f-849d-91734e6d8419 cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/subid/providers/Microsoft.Resources/deployments/fake?api-version=2021-04-01' cli.azure.cli.core.sdk.policies: Request method: 'DELETE' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '1447b0e9-3dc1-11ec-9241-000d3af67f8b' cli.azure.cli.core.sdk.policies: 'CommandName': 'deployment sub delete' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.30.0 (DEB) azsdk-python-azure-mgmt-resource/19.0.0 Python/3.6.10 (Linux-5.4.0-1062-azure-x86_64-with-debian-buster-sid)' cli.azure.cli.core.sdk.policies: 'Authorization': '*****' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: This request has no body urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443 urllib3.connectionpool: https://management.azure.com:443 "DELETE /subscriptions/{subscriptionid}/providers/Microsoft.Resources/deployments/fake?api-version=2021-04-01 HTTP/1.1" 204 0 cli.azure.cli.core.sdk.policies: Response status: 204 cli.azure.cli.core.sdk.policies: Response headers: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-deletes': '14999' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'b9a6b4ea-13b5-45de-a97e-52e2686b18d3' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'b9a6b4ea-13b5-45de-a97e-52e2686b18d3' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTUS2:20211104T224643Z:b9a6b4ea-13b5-45de-a97e-52e2686b18d3' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 04 Nov 2021 22:46:42 GMT' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x7f1fd30342f0>, <function _x509_from_base64_to_hex_transform at 0x7f1fd3034378>] cli.knack.cli: Event: CommandInvoker.OnFilterResult [] cli.knack.cli: Event: Cli.SuccessfulExecute [] cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f1fd3008378>] az_command_data_logger: exit code: 0 cli.__main__: Command ran in 1.689 seconds (init: 0.313, invoke: 1.377) telemetry.save: Save telemetry record of length 3030 in cache telemetry.check: Returns Positive. telemetry.main: Begin creating telemetry upload process. telemetry.process: Creating upload process: "/usr/bin/../../opt/az/bin/python3 /opt/az/lib/python3.6/site-packages/azure/cli/telemetry/__init__.py /home/rajohnson/.azure" telemetry.process: Return from creating process telemetry.main: Finish creating telemetry upload process.
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az deployment sub delete --name {}
Linux-5.4.0-1062-azure-x86_64-with-debian-buster-sid, Ubuntu 18.04.6 LTS Python 3.6.10 Installer: DEB azure-cli 2.30.0
ARM
Describe the bug
Command Name
az deployment sub delete
Errors: Command says it's successful in deleting the deployment, but the deployment never gets deleted.
Debug Log:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az deployment sub delete --name {}
Environment Summary
Additional Context