@@ -35,7 +35,7 @@ def get_target_network_api(cli_ctx):
3535 if cli_ctx .cloud .profile == 'latest' :
3636 version = '2022-01-01'
3737 else :
38- from azure .cli .core .profiles import get_api_version , ResourceType
38+ from azure .cli .core .profiles import get_api_version
3939 version = get_api_version (cli_ctx , ResourceType .MGMT_NETWORK )
4040 return version
4141
@@ -49,8 +49,6 @@ def read_content_if_is_file(string_or_file):
4949
5050
5151def _resolve_api_version (cli_ctx , provider_namespace , resource_type , parent_path ):
52- from azure .cli .core .commands .client_factory import get_mgmt_service_client
53- from azure .cli .core .profiles import ResourceType
5452 client = get_mgmt_service_client (cli_ctx , ResourceType .MGMT_RESOURCE_RESOURCES )
5553 provider = client .providers .get (provider_namespace )
5654
@@ -78,10 +76,8 @@ def log_pprint_template(template):
7876def check_existence (cli_ctx , value , resource_group , provider_namespace , resource_type ,
7977 parent_name = None , parent_type = None , static_version = None ):
8078 # check for name or ID and set the type flags
81- from azure .cli .core .commands .client_factory import get_mgmt_service_client
8279 from azure .core .exceptions import HttpResponseError
8380 from azure .mgmt .core .tools import parse_resource_id
84- from azure .cli .core .profiles import ResourceType
8581 id_parts = parse_resource_id (value )
8682 resource_client = get_mgmt_service_client (cli_ctx , ResourceType .MGMT_RESOURCE_RESOURCES ,
8783 subscription_id = id_parts .get ('subscription' , None )).resources
@@ -417,8 +413,6 @@ def _update(model, lun, value):
417413
418414
419415def get_storage_blob_uri (cli_ctx , storage ):
420- from azure .cli .core .profiles ._shared import ResourceType
421- from azure .cli .core .commands .client_factory import get_mgmt_service_client
422416 if urlparse (storage ).scheme :
423417 storage_uri = storage
424418 else :
0 commit comments