From 9483466585c9b011787ee5890458f3c2f0350d3e Mon Sep 17 00:00:00 2001 From: patrykkulik-microsoft <116072282+patrykkulik-microsoft@users.noreply.github.com> Date: Wed, 26 Jul 2023 15:50:18 +0100 Subject: [PATCH] Pk5/add integration tests (#51) * Somewhat working example * Cleanups * Update recording * fix minor linting error --- src/aosm/azext_aosm/custom.py | 43 +- src/aosm/azext_aosm/delete/delete.py | 80 +- src/aosm/azext_aosm/deploy/deploy_with_arm.py | 2 +- .../azext_aosm/generate_nsd/nsd_generator.py | 4 +- .../tests/latest/mock_nsd/input.json | 3 +- .../test_vnf_nsd_publish_and_delete.yaml | 4925 +++++++++++++++++ .../cnf_mocks/nginxdemo-0.1.0.tgz | Bin 0 -> 4509 bytes .../cnf_input_template.json | 18 + .../cnf_nsd_input_template.json | 14 + .../vnf_input_template.json | 18 + .../vnf_nsd_input_template.json | 14 + .../vnf_mocks/ubuntu_template.json | 118 + .../latest/test_cnf_publish_and_delete.py | 86 + .../latest/test_vnf_publish_and_delete.py | 72 + 14 files changed, 5337 insertions(+), 60 deletions(-) create mode 100644 src/aosm/azext_aosm/tests/latest/recordings/test_vnf_nsd_publish_and_delete.yaml create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/cnf_mocks/nginxdemo-0.1.0.tgz create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_input_template.json create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_nsd_input_template.json create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_input_template.json create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_nsd_input_template.json create mode 100644 src/aosm/azext_aosm/tests/latest/scenario_test_mocks/vnf_mocks/ubuntu_template.json create mode 100644 src/aosm/azext_aosm/tests/latest/test_cnf_publish_and_delete.py create mode 100644 src/aosm/azext_aosm/tests/latest/test_vnf_publish_and_delete.py diff --git a/src/aosm/azext_aosm/custom.py b/src/aosm/azext_aosm/custom.py index d76c4a7ae2c..fb94b5e20fe 100644 --- a/src/aosm/azext_aosm/custom.py +++ b/src/aosm/azext_aosm/custom.py @@ -44,6 +44,7 @@ def build_definition( config_file: str, order_params: bool = False, interactive: bool = False, + force: bool = False, ): """ Build a definition. @@ -66,6 +67,7 @@ def build_definition( config=config, order_params=order_params, interactive=interactive, + force=force, ) @@ -100,7 +102,7 @@ def _get_config_from_file(config_file: str, configuration_type: str) -> Configur def _generate_nfd( - definition_type: str, config: NFConfiguration, order_params: bool, interactive: bool + definition_type: str, config: NFConfiguration, order_params: bool, interactive: bool, force: bool = False ): """Generate a Network Function Definition for the given type and config.""" nfd_generator: NFDGenerator @@ -116,12 +118,13 @@ def _generate_nfd( " have been implemented." ) if nfd_generator.nfd_bicep_path: - carry_on = input( - f"The {nfd_generator.nfd_bicep_path.parent} directory already exists -" - " delete it and continue? (y/n)" - ) - if carry_on != "y": - raise UnclassifiedUserFault("User aborted!") + if not force: + carry_on = input( + f"The {nfd_generator.nfd_bicep_path.parent} directory already exists -" + " delete it and continue? (y/n)" + ) + if carry_on != "y": + raise UnclassifiedUserFault("User aborted!") shutil.rmtree(nfd_generator.nfd_bicep_path.parent) nfd_generator.generate_nfd() @@ -195,6 +198,7 @@ def delete_published_definition( definition_type, config_file, clean=False, + force=False ): """ Delete a published definition. @@ -215,9 +219,9 @@ def delete_published_definition( delly = ResourceDeleter(api_clients, config) if definition_type == VNF: - delly.delete_nfd(clean=clean) + delly.delete_nfd(clean=clean, force=force) elif definition_type == CNF: - delly.delete_nfd(clean=clean) + delly.delete_nfd(clean=clean, force=force) else: raise ValueError( "Definition type must be either 'vnf' or 'cnf'. Definition type" @@ -271,7 +275,7 @@ def _generate_config(configuration_type: str, output_file: str = "input.json"): ) -def build_design(cmd, client: HybridNetworkManagementClient, config_file: str): +def build_design(cmd, client: HybridNetworkManagementClient, config_file: str, force: bool = False): """ Build a Network Service Design. @@ -296,6 +300,7 @@ def build_design(cmd, client: HybridNetworkManagementClient, config_file: str): _generate_nsd( config=config, api_clients=api_clients, + force=force, ) @@ -303,6 +308,7 @@ def delete_published_design( cmd, client: HybridNetworkManagementClient, config_file, + force=False, ): """ Delete a published NSD. @@ -319,7 +325,7 @@ def delete_published_design( ) destroyer = ResourceDeleter(api_clients, config) - destroyer.delete_nsd() + destroyer.delete_nsd(force=force) def publish_design( @@ -373,15 +379,16 @@ def publish_design( deployer.deploy_nsd_from_bicep() -def _generate_nsd(config: NSConfiguration, api_clients: ApiClients): +def _generate_nsd(config: NSConfiguration, api_clients: ApiClients, force: bool = False): """Generate a Network Service Design for the given config.""" if os.path.exists(config.output_directory_for_build): - carry_on = input( - f"The folder {config.output_directory_for_build} already exists - delete it" - " and continue? (y/n)" - ) - if carry_on != "y": - raise UnclassifiedUserFault("User aborted! ") + if not force: + carry_on = input( + f"The folder {config.output_directory_for_build} already exists - delete it" + " and continue? (y/n)" + ) + if carry_on != "y": + raise UnclassifiedUserFault("User aborted! ") shutil.rmtree(config.output_directory_for_build) nsd_generator = NSDGenerator(api_clients, config) diff --git a/src/aosm/azext_aosm/delete/delete.py b/src/aosm/azext_aosm/delete/delete.py index 3580a5d7737..f1442d7c930 100644 --- a/src/aosm/azext_aosm/delete/delete.py +++ b/src/aosm/azext_aosm/delete/delete.py @@ -35,7 +35,7 @@ def __init__( self.api_clients = api_clients self.config = config - def delete_nfd(self, clean: bool = False): + def delete_nfd(self, clean: bool = False, force: bool = False) -> None: """ Delete the NFDV and manifests. If they don't exist it still reports them as deleted. @@ -44,33 +44,34 @@ def delete_nfd(self, clean: bool = False): """ assert isinstance(self.config, NFConfiguration) - if clean: - print( - "Are you sure you want to delete all resources associated with NFD" - f" {self.config.nf_name} including the artifact stores and publisher" - f" {self.config.publisher_name}?" - ) - logger.warning( - "This command will fail if other NFD versions exist in the NFD group." - ) - logger.warning( - "Only do this if you are SURE you are not sharing the publisher and" - " artifact stores with other NFDs" - ) - print("There is no undo. Type the publisher name to confirm.") - if not input_ack(self.config.publisher_name.lower(), "Confirm delete:"): - print("Not proceeding with delete") - return - else: - print( - "Are you sure you want to delete the NFD Version" - f" {self.config.version} and associated manifests from group" - f" {self.config.nfdg_name} and publisher {self.config.publisher_name}?" - ) - print("There is no undo. Type 'delete' to confirm") - if not input_ack("delete", "Confirm delete:"): - print("Not proceeding with delete") - return + if not force: + if clean: + print( + "Are you sure you want to delete all resources associated with NFD" + f" {self.config.nf_name} including the artifact stores and publisher" + f" {self.config.publisher_name}?" + ) + logger.warning( + "This command will fail if other NFD versions exist in the NFD group." + ) + logger.warning( + "Only do this if you are SURE you are not sharing the publisher and" + " artifact stores with other NFDs" + ) + print("There is no undo. Type the publisher name to confirm.") + if not input_ack(self.config.publisher_name.lower(), "Confirm delete:"): + print("Not proceeding with delete") + return + else: + print( + "Are you sure you want to delete the NFD Version" + f" {self.config.version} and associated manifests from group" + f" {self.config.nfdg_name} and publisher {self.config.publisher_name}?" + ) + print("There is no undo. Type 'delete' to confirm") + if not input_ack("delete", "Confirm delete:"): + print("Not proceeding with delete") + return self.delete_nfdv() @@ -86,7 +87,7 @@ def delete_nfd(self, clean: bool = False): self.delete_artifact_store("sa") self.delete_publisher() - def delete_nsd(self): + def delete_nsd(self, force: bool = False) -> None: """ Delete the NSDV and manifests. @@ -94,16 +95,17 @@ def delete_nsd(self): """ assert isinstance(self.config, NSConfiguration) - print( - "Are you sure you want to delete the NSD Version" - f" {self.config.nsd_version}, the associated manifest" - f" {self.config.acr_manifest_name} and configuration group schema" - f" {self.config.cg_schema_name}?" - ) - print("There is no undo. Type 'delete' to confirm") - if not input_ack("delete", "Confirm delete:"): - print("Not proceeding with delete") - return + if not force: + print( + "Are you sure you want to delete the NSD Version" + f" {self.config.nsd_version}, the associated manifest" + f" {self.config.acr_manifest_name} and configuration group schema" + f" {self.config.cg_schema_name}?" + ) + print("There is no undo. Type 'delete' to confirm") + if not input_ack("delete", "Confirm delete:"): + print("Not proceeding with delete") + return self.delete_nsdv() self.delete_artifact_manifest("acr") diff --git a/src/aosm/azext_aosm/deploy/deploy_with_arm.py b/src/aosm/azext_aosm/deploy/deploy_with_arm.py index cfd49dcd331..83ee6bc2853 100644 --- a/src/aosm/azext_aosm/deploy/deploy_with_arm.py +++ b/src/aosm/azext_aosm/deploy/deploy_with_arm.py @@ -525,7 +525,7 @@ def validate_and_deploy_arm_template( current_time = str(time.time()).split(".", maxsplit=1)[0] # Add a timestamp to the deployment name to ensure it is unique - deployment_name = f"AOSM_CLI_deployment_into_{resource_group}_{current_time}" + deployment_name = f"AOSM_CLI_deployment_{current_time}" validation = self.api_clients.resource_client.deployments.begin_validate( resource_group_name=resource_group, diff --git a/src/aosm/azext_aosm/generate_nsd/nsd_generator.py b/src/aosm/azext_aosm/generate_nsd/nsd_generator.py index 1f6029917a2..1dd2e04825d 100644 --- a/src/aosm/azext_aosm/generate_nsd/nsd_generator.py +++ b/src/aosm/azext_aosm/generate_nsd/nsd_generator.py @@ -247,7 +247,9 @@ def write_config_mappings(self, folder_path: str) -> None: config_mappings = { "deploymentParameters": deployment_parameters, - self.nfdv_parameter_name: f"{{configurationparameters('{self.config.cg_schema_name}').{nf}.{self.nfdv_parameter_name}}}", + self.nfdv_parameter_name: ( + f"{{configurationparameters('{self.config.cg_schema_name}').{nf}.{self.nfdv_parameter_name}}}" + ), "managedIdentity": f"{{configurationparameters('{self.config.cg_schema_name}').managedIdentity}}", } diff --git a/src/aosm/azext_aosm/tests/latest/mock_nsd/input.json b/src/aosm/azext_aosm/tests/latest/mock_nsd/input.json index 8cccdaebfa8..93132cd558b 100644 --- a/src/aosm/azext_aosm/tests/latest/mock_nsd/input.json +++ b/src/aosm/azext_aosm/tests/latest/mock_nsd/input.json @@ -9,5 +9,6 @@ "network_function_type": "vnf", "nsdg_name": "ubuntu", "nsd_version": "1.0.0", - "nsdv_description": "Plain ubuntu VM" + "nsdv_description": "Plain ubuntu VM", + "multiple_instances": false } \ No newline at end of file diff --git a/src/aosm/azext_aosm/tests/latest/recordings/test_vnf_nsd_publish_and_delete.yaml b/src/aosm/azext_aosm/tests/latest/recordings/test_vnf_nsd_publish_and_delete.yaml new file mode 100644 index 00000000000..fecf3af37c7 --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/recordings/test_vnf_nsd_publish_and_delete.yaml @@ -0,0 +1,4925 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test?api-version=2022-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:40:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test","name":"patrykkulik-test","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"autoDelete":"true","expiresOn":"2023-08-20T10:48:11.8928180Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '301' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher","name":"ubuntuPublisher","type":"microsoft.hybridnetwork/publishers","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:35:08.3094719Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-24T10:35:08.3094719Z"},"properties":{"scope":"Private","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '550' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:30 GMT + etag: + - '"0b00b59c-0000-1100-0000-64be53e60000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr","name":"ubuntu-acr","type":"microsoft.hybridnetwork/publishers/artifactstores","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:36:42.2618346Z","lastModifiedBy":"b8ed041c-aa91-418e-8f47-20c70abc2de1","lastModifiedByType":"Application","lastModifiedAt":"2023-07-25T15:40:36.9503596Z"},"properties":{"storeType":"AzureContainerRegistry","replicationStrategy":"SingleReplication","managedResourceGroupConfiguration":{"name":"ubuntu-acr-HostedResources-7510103F","location":"uksouth"},"provisioningState":"Succeeded","storageResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ubuntu-acr-HostedResources-7510103F/providers/Microsoft.ContainerRegistry/registries/UbuntupublisherUbuntuAcr2315dcfa83"}}' + headers: + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:31 GMT + etag: + - '"0a007d57-0000-1100-0000-64bfecf40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store","name":"ubuntu-blob-store","type":"microsoft.hybridnetwork/publishers/artifactstores","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:40:16.8226627Z","lastModifiedBy":"b8ed041c-aa91-418e-8f47-20c70abc2de1","lastModifiedByType":"Application","lastModifiedAt":"2023-07-25T15:38:05.439289Z"},"properties":{"storeType":"AzureStorageAccount","replicationStrategy":"SingleReplication","managedResourceGroupConfiguration":{"name":"ubuntu-blob-store-HostedResources-07BDF073","location":"uksouth"},"provisioningState":"Succeeded","storageResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ubuntu-blob-store-HostedResources-07BDF073/providers/Microsoft.Storage/storageAccounts/07bdf073ubuntublobstorea"}}' + headers: + cache-control: + - no-cache + content-length: + - '987' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:31 GMT + etag: + - '"0a004656-0000-1100-0000-64bfec5d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg","name":"ubuntu-vm-nfdg","type":"microsoft.hybridnetwork/publishers/networkfunctiondefinitiongroups","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:42:52.0873069Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-24T10:42:52.0873069Z"},"properties":{"description":null,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:31 GMT + etag: + - '"0f00e901-0000-1100-0000-64be55b40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0'' + under resource group ''patrykkulik-test'' was not found. For more details + please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '311' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0'' + under resource group ''patrykkulik-test'' was not found. For more details + please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '317' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "6414151573583976606"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "saArtifactStoreName": {"type": "string", "metadata": {"description": + "Name of an existing Storage Account-backed Artifact Store, deployed under the + publisher."}}, "acrManifestName": {"type": "string", "metadata": {"description": + "Name of the manifest to deploy for the ACR-backed Artifact Store"}}, "saManifestName": + {"type": "string", "metadata": {"description": "Name of the manifest to deploy + for the Storage Account-backed Artifact Store"}}, "nfName": {"type": "string", + "metadata": {"description": "Name of Network Function. Used predominantly as + a prefix for other variable names"}}, "vhdVersion": {"type": "string", "metadata": + {"description": "The version that you want to name the NFM VHD artifact, in + format A-B-C. e.g. 6-13-0"}}, "armTemplateVersion": {"type": "string", "metadata": + {"description": "The name under which to store the ARM template"}}}, "resources": + [{"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''saArtifactStoreName''), parameters(''saManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[format(''{0}-vhd'', parameters(''nfName''))]", "artifactType": "VhdImageFile", + "artifactVersion": "[parameters(''vhdVersion'')]"}]}}, {"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''acrArtifactStoreName''), parameters(''acrManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[format(''{0}-arm-template'', parameters(''nfName''))]", "artifactType": "ArmTemplate", + "artifactVersion": "[parameters(''armTemplateVersion'')]"}]}}]}, "parameters": + {"location": {"value": "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, + "acrArtifactStoreName": {"value": "ubuntu-acr"}, "saArtifactStoreName": {"value": + "ubuntu-blob-store"}, "acrManifestName": {"value": "ubuntu-vm-acr-manifest-1-0-0"}, + "saManifestName": {"value": "ubuntu-vm-sa-manifest-1-0-0"}, "nfName": {"value": + "ubuntu-vm"}, "vhdVersion": {"value": "1-0-0"}, "armTemplateVersion": {"value": + "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '2907' + Content-Type: + - application/json + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378835","name":"AOSM_CLI_deployment_1690378835","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6414151573583976606","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"acrManifestName":{"type":"String","value":"ubuntu-vm-acr-manifest-1-0-0"},"saManifestName":{"type":"String","value":"ubuntu-vm-sa-manifest-1-0-0"},"nfName":{"type":"String","value":"ubuntu-vm"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"0001-01-01T00:00:00Z","duration":"PT0S","correlationId":"c12b6d8b-5712-4e8c-b5f0-796987b7ede0","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1668' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:37 GMT + expires: + - '-1' + pragma: + - no-cache + 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' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "6414151573583976606"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "saArtifactStoreName": {"type": "string", "metadata": {"description": + "Name of an existing Storage Account-backed Artifact Store, deployed under the + publisher."}}, "acrManifestName": {"type": "string", "metadata": {"description": + "Name of the manifest to deploy for the ACR-backed Artifact Store"}}, "saManifestName": + {"type": "string", "metadata": {"description": "Name of the manifest to deploy + for the Storage Account-backed Artifact Store"}}, "nfName": {"type": "string", + "metadata": {"description": "Name of Network Function. Used predominantly as + a prefix for other variable names"}}, "vhdVersion": {"type": "string", "metadata": + {"description": "The version that you want to name the NFM VHD artifact, in + format A-B-C. e.g. 6-13-0"}}, "armTemplateVersion": {"type": "string", "metadata": + {"description": "The name under which to store the ARM template"}}}, "resources": + [{"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''saArtifactStoreName''), parameters(''saManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[format(''{0}-vhd'', parameters(''nfName''))]", "artifactType": "VhdImageFile", + "artifactVersion": "[parameters(''vhdVersion'')]"}]}}, {"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''acrArtifactStoreName''), parameters(''acrManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[format(''{0}-arm-template'', parameters(''nfName''))]", "artifactType": "ArmTemplate", + "artifactVersion": "[parameters(''armTemplateVersion'')]"}]}}]}, "parameters": + {"location": {"value": "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, + "acrArtifactStoreName": {"value": "ubuntu-acr"}, "saArtifactStoreName": {"value": + "ubuntu-blob-store"}, "acrManifestName": {"value": "ubuntu-vm-acr-manifest-1-0-0"}, + "saManifestName": {"value": "ubuntu-vm-sa-manifest-1-0-0"}, "nfName": {"value": + "ubuntu-vm"}, "vhdVersion": {"value": "1-0-0"}, "armTemplateVersion": {"value": + "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '2907' + Content-Type: + - application/json + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378835","name":"AOSM_CLI_deployment_1690378835","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6414151573583976606","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"acrManifestName":{"type":"String","value":"ubuntu-vm-acr-manifest-1-0-0"},"saManifestName":{"type":"String","value":"ubuntu-vm-sa-manifest-1-0-0"},"nfName":{"type":"String","value":"ubuntu-vm"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-07-26T13:40:39.9830794Z","duration":"PT0.0007049S","correlationId":"6b5fc538-ddd6-42f2-b6d3-595d3d08458a","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378835/operationStatuses/08585112280464871991?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '1200' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280464871991?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:40:40 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280464871991?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41: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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378835","name":"AOSM_CLI_deployment_1690378835","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6414151573583976606","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"acrManifestName":{"type":"String","value":"ubuntu-vm-acr-manifest-1-0-0"},"saManifestName":{"type":"String","value":"ubuntu-vm-sa-manifest-1-0-0"},"nfName":{"type":"String","value":"ubuntu-vm"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-07-26T13:41:01.4062434Z","duration":"PT21.4238689S","correlationId":"6b5fc538-ddd6-42f2-b6d3-595d3d08458a","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1682' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41: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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "9578888424119431564"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "saArtifactStoreName": {"type": "string", "metadata": {"description": + "Name of an existing Storage Account-backed Artifact Store, deployed under the + publisher."}}, "nfName": {"type": "string", "metadata": {"description": "Name + of Network Function. Used predominantly as a prefix for other variable names"}}, + "nfDefinitionGroup": {"type": "string", "metadata": {"description": "Name of + an existing Network Function Definition Group"}}, "nfDefinitionVersion": {"type": + "string", "metadata": {"description": "The version of the NFDV you want to deploy, + in format A-B-C"}}, "vhdVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM VHD artifact, in format A-B-C. e.g. + 6-13-0"}}, "armTemplateVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM template artifact, in format A.B.C. + e.g. 6.13.0. If testing for development, you can use any numbers you like."}}}, + "variables": {"$fxv#0": {"$schema": "https://json-schema.org/draft-07/schema#", + "title": "DeployParametersSchema", "type": "object", "properties": {"location": + {"type": "string"}, "subnetName": {"type": "string"}, "ubuntuVmName": {"type": + "string"}, "virtualNetworkId": {"type": "string"}, "sshPublicKeyAdmin": {"type": + "string"}}}, "$fxv#1": {"imageName": "ubuntu-vmImage", "azureDeployLocation": + "{deployParameters.location}"}, "$fxv#2": {"location": "{deployParameters.location}", + "subnetName": "{deployParameters.subnetName}", "ubuntuVmName": "{deployParameters.ubuntuVmName}", + "virtualNetworkId": "{deployParameters.virtualNetworkId}", "sshPublicKeyAdmin": + "{deployParameters.sshPublicKeyAdmin}", "imageName": "ubuntu-vmImage"}}, "resources": + [{"type": "Microsoft.Hybridnetwork/publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''nfDefinitionGroup''), parameters(''nfDefinitionVersion''))]", "location": + "[parameters(''location'')]", "properties": {"versionState": "Preview", "deployParameters": + "[string(variables(''$fxv#0''))]", "networkFunctionType": "VirtualNetworkFunction", + "networkFunctionTemplate": {"nfviType": "AzureCore", "networkFunctionApplications": + [{"artifactType": "VhdImageFile", "name": "[format(''{0}Image'', parameters(''nfName''))]", + "dependsOnProfile": null, "artifactProfile": {"vhdArtifactProfile": {"vhdName": + "[format(''{0}-vhd'', parameters(''nfName''))]", "vhdVersion": "[parameters(''vhdVersion'')]"}, + "artifactStore": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''saArtifactStoreName''))]"}}, "deployParametersMappingRuleProfile": + {"vhdImageMappingRuleProfile": {"userConfiguration": "[string(variables(''$fxv#1''))]"}, + "applicationEnablement": "Unknown"}}, {"artifactType": "ArmTemplate", "name": + "[parameters(''nfName'')]", "dependsOnProfile": null, "artifactProfile": {"templateArtifactProfile": + {"templateName": "[format(''{0}-arm-template'', parameters(''nfName''))]", "templateVersion": + "[parameters(''armTemplateVersion'')]"}, "artifactStore": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''acrArtifactStoreName''))]"}}, "deployParametersMappingRuleProfile": + {"templateMappingRuleProfile": {"templateParameters": "[string(variables(''$fxv#2''))]"}, + "applicationEnablement": "Unknown"}}]}}}]}, "parameters": {"location": {"value": + "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, "acrArtifactStoreName": + {"value": "ubuntu-acr"}, "saArtifactStoreName": {"value": "ubuntu-blob-store"}, + "nfName": {"value": "ubuntu-vm"}, "nfDefinitionGroup": {"value": "ubuntu-vm-nfdg"}, + "nfDefinitionVersion": {"value": "1.0.0"}, "vhdVersion": {"value": "1-0-0"}, + "armTemplateVersion": {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '4483' + Content-Type: + - application/json + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378875","name":"AOSM_CLI_deployment_1690378875","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9578888424119431564","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"nfName":{"type":"String","value":"ubuntu-vm"},"nfDefinitionGroup":{"type":"String","value":"ubuntu-vm-nfdg"},"nfDefinitionVersion":{"type":"String","value":"1.0.0"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"0001-01-01T00:00:00Z","duration":"PT0S","correlationId":"67dc782c-80b9-4cfc-9870-c66297946a13","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions","locations":["uksouth"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkfunctiondefinitiongroups/ubuntu-vm-nfdg/networkfunctiondefinitionversions/1.0.0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1453' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "9578888424119431564"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "saArtifactStoreName": {"type": "string", "metadata": {"description": + "Name of an existing Storage Account-backed Artifact Store, deployed under the + publisher."}}, "nfName": {"type": "string", "metadata": {"description": "Name + of Network Function. Used predominantly as a prefix for other variable names"}}, + "nfDefinitionGroup": {"type": "string", "metadata": {"description": "Name of + an existing Network Function Definition Group"}}, "nfDefinitionVersion": {"type": + "string", "metadata": {"description": "The version of the NFDV you want to deploy, + in format A-B-C"}}, "vhdVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM VHD artifact, in format A-B-C. e.g. + 6-13-0"}}, "armTemplateVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM template artifact, in format A.B.C. + e.g. 6.13.0. If testing for development, you can use any numbers you like."}}}, + "variables": {"$fxv#0": {"$schema": "https://json-schema.org/draft-07/schema#", + "title": "DeployParametersSchema", "type": "object", "properties": {"location": + {"type": "string"}, "subnetName": {"type": "string"}, "ubuntuVmName": {"type": + "string"}, "virtualNetworkId": {"type": "string"}, "sshPublicKeyAdmin": {"type": + "string"}}}, "$fxv#1": {"imageName": "ubuntu-vmImage", "azureDeployLocation": + "{deployParameters.location}"}, "$fxv#2": {"location": "{deployParameters.location}", + "subnetName": "{deployParameters.subnetName}", "ubuntuVmName": "{deployParameters.ubuntuVmName}", + "virtualNetworkId": "{deployParameters.virtualNetworkId}", "sshPublicKeyAdmin": + "{deployParameters.sshPublicKeyAdmin}", "imageName": "ubuntu-vmImage"}}, "resources": + [{"type": "Microsoft.Hybridnetwork/publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''nfDefinitionGroup''), parameters(''nfDefinitionVersion''))]", "location": + "[parameters(''location'')]", "properties": {"versionState": "Preview", "deployParameters": + "[string(variables(''$fxv#0''))]", "networkFunctionType": "VirtualNetworkFunction", + "networkFunctionTemplate": {"nfviType": "AzureCore", "networkFunctionApplications": + [{"artifactType": "VhdImageFile", "name": "[format(''{0}Image'', parameters(''nfName''))]", + "dependsOnProfile": null, "artifactProfile": {"vhdArtifactProfile": {"vhdName": + "[format(''{0}-vhd'', parameters(''nfName''))]", "vhdVersion": "[parameters(''vhdVersion'')]"}, + "artifactStore": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''saArtifactStoreName''))]"}}, "deployParametersMappingRuleProfile": + {"vhdImageMappingRuleProfile": {"userConfiguration": "[string(variables(''$fxv#1''))]"}, + "applicationEnablement": "Unknown"}}, {"artifactType": "ArmTemplate", "name": + "[parameters(''nfName'')]", "dependsOnProfile": null, "artifactProfile": {"templateArtifactProfile": + {"templateName": "[format(''{0}-arm-template'', parameters(''nfName''))]", "templateVersion": + "[parameters(''armTemplateVersion'')]"}, "artifactStore": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''acrArtifactStoreName''))]"}}, "deployParametersMappingRuleProfile": + {"templateMappingRuleProfile": {"templateParameters": "[string(variables(''$fxv#2''))]"}, + "applicationEnablement": "Unknown"}}]}}}]}, "parameters": {"location": {"value": + "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, "acrArtifactStoreName": + {"value": "ubuntu-acr"}, "saArtifactStoreName": {"value": "ubuntu-blob-store"}, + "nfName": {"value": "ubuntu-vm"}, "nfDefinitionGroup": {"value": "ubuntu-vm-nfdg"}, + "nfDefinitionVersion": {"value": "1.0.0"}, "vhdVersion": {"value": "1-0-0"}, + "armTemplateVersion": {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '4483' + Content-Type: + - application/json + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378875","name":"AOSM_CLI_deployment_1690378875","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9578888424119431564","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"nfName":{"type":"String","value":"ubuntu-vm"},"nfDefinitionGroup":{"type":"String","value":"ubuntu-vm-nfdg"},"nfDefinitionVersion":{"type":"String","value":"1.0.0"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-07-26T13:41:18.9471964Z","duration":"PT0.0002291S","correlationId":"656d408c-7df4-4d6a-9c4c-db318c6666a7","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions","locations":["uksouth"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378875/operationStatuses/08585112280068404322?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '1204' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280068404322?api-version=2022-09-01 + response: + body: + string: '{"status":"Accepted"}' + headers: + cache-control: + - no-cache + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41:18 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280068404322?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:41:49 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280068404322?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:19 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112280068404322?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:51 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378875","name":"AOSM_CLI_deployment_1690378875","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9578888424119431564","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"saArtifactStoreName":{"type":"String","value":"ubuntu-blob-store"},"nfName":{"type":"String","value":"ubuntu-vm"},"nfDefinitionGroup":{"type":"String","value":"ubuntu-vm-nfdg"},"nfDefinitionVersion":{"type":"String","value":"1.0.0"},"vhdVersion":{"type":"String","value":"1-0-0"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-07-26T13:42:41.877147Z","duration":"PT1M22.9301797S","correlationId":"656d408c-7df4-4d6a-9c4c-db318c6666a7","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions","locations":["uksouth"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkfunctiondefinitiongroups/ubuntu-vm-nfdg/networkfunctiondefinitionversions/1.0.0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1468' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:51 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: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0","name":"ubuntu-vm-sa-manifest-1-0-0","type":"microsoft.hybridnetwork/publishers/artifactstores/artifactmanifests","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-26T13:40:42.2163698Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:40:42.2163698Z"},"properties":{"artifacts":[{"artifactName":"ubuntu-vm-vhd","artifactType":"VhdImageFile","artifactVersion":"1-0-0"}],"artifactManifestState":"Uploading","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '795' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:51 GMT + etag: + - '"0100d6d7-0000-1100-0000-64c1225e0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0/listCredential?api-version=2023-04-01-preview + response: + body: + string: '{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ubuntu-blob-store-HostedResources-07BDF073/providers/Microsoft.Storage/storageAccounts/07bdf073ubuntublobstorea","containerCredentials":[{"containerName":"ubuntuvmvhd-1-0-0","containerSasUri":"https://07bdf073ubuntublobstorea.blob.core.windows.net/ubuntuvmvhd-1-0-0?sv=2021-08-06&si=StorageAccountAccessPolicy&sr=c&sig=eoSLWD7pccblbNRJt8QGMkWOcYR9xZbjVntVNxHmXiY%3D"}],"expiry":"2023-07-27T13:42:53.0889336+00:00","credentialType":"AzureStorageAccountToken"}' + headers: + cache-control: + - no-cache + content-length: + - '546' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0","name":"ubuntu-vm-acr-manifest-1-0-0","type":"microsoft.hybridnetwork/publishers/artifactstores/artifactmanifests","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-26T13:40:42.45082Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:40:42.45082Z"},"properties":{"artifacts":[{"artifactName":"ubuntu-vm-arm-template","artifactType":"ArmTemplate","artifactVersion":"1.0.0"}],"artifactManifestState":"Uploading","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '794' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:52 GMT + etag: + - '"010000d8-0000-1100-0000-64c1226a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd publish + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --definition-type --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0/listCredential?api-version=2023-04-01-preview + response: + body: + string: '{"username":"ubuntu-vm-acr-manifest-1-0-0","acrToken":"dzBEJc9khyb/+Gwp3TQDSYn6bvvFcJfQfgF8MZT20M+ACRA+ahWq","acrServerUrl":"https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io","repositories":["ubuntu-vm-arm-template"],"expiry":"2023-07-27T13:42:53.8465345+00:00","credentialType":"AzureContainerRegistryScopedToken"}' + headers: + cache-control: + - no-cache + content-length: + - '320' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.16.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + x-ms-date: + - Wed, 26 Jul 2023 13:42:53 GMT + x-ms-version: + - '2022-11-02' + method: HEAD + uri: https://ubuntuimage.blob.core.windows.net/images/livecd.ubuntu-cpc.azure.vhd?sp=r&st=2023-07-25T13%3A50%3A40Z&se=2024-07-25T21%3A50%3A40Z&spr=https&sv=2022-11-02&sr=b&sig=NlqXIleMtL9wIACerJdtxZ5kXdF0Gbe4uoYRmcDsFq8%3D + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '32213303808' + content-type: + - application/octet-stream + date: + - Wed, 26 Jul 2023 13:42:54 GMT + etag: + - '"0x8DB883E503690E6"' + last-modified: + - Wed, 19 Jul 2023 09:55:41 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-sequence-number: + - '0' + x-ms-blob-type: + - PageBlob + x-ms-creation-time: + - Wed, 19 Jul 2023 09:33:40 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2022-11-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.16.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + x-ms-copy-source: + - https://ubuntuimage.blob.core.windows.net/images/livecd.ubuntu-cpc.azure.vhd?sp=r&st=2023-07-25T13%3A50%3A40Z&se=2024-07-25T21%3A50%3A40Z&spr=https&sv=2022-11-02&sr=b&sig=NlqXIleMtL9wIACerJdtxZ5kXdF0Gbe4uoYRmcDsFq8%3D + x-ms-date: + - Wed, 26 Jul 2023 13:42:53 GMT + x-ms-version: + - '2022-11-02' + method: PUT + uri: https://07bdf073ubuntublobstorea.blob.core.windows.net/ubuntuvmvhd-1-0-0/ubuntuvm-1-0-0.vhd?sv=2021-08-06&si=StorageAccountAccessPolicy&sr=c&sig=eoSLWD7pccblbNRJt8QGMkWOcYR9xZbjVntVNxHmXiY%3D + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:55 GMT + etag: + - '"0x8DB8DDE37993689"' + last-modified: + - Wed, 26 Jul 2023 13:42:55 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-copy-id: + - 772d97bc-1e16-4a2a-8a18-6ad8d074e371 + x-ms-copy-status: + - pending + x-ms-version: + - '2022-11-02' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/ + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '286' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:55 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-arm-template:pull,push" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-arm-template%3Apull%2Cpush + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiJhZmI5ZmM4MS05MDRjLTRlMjMtODVhZC1iZmYwNzYyYTMxMzEiLCJzdWIiOiJ1YnVudHUtdm0tYWNyLW1hbmlmZXN0LTEtMC0wIiwibmJmIjoxNjkwMzc4MDc2LCJleHAiOjE2OTAzNzk4NzYsImlhdCI6MTY5MDM3ODA3NiwiaXNzIjoiQXp1cmUgQ29udGFpbmVyIFJlZ2lzdHJ5IiwiYXVkIjoidWJ1bnR1cHVibGlzaGVydWJ1bnR1YWNyMjMxNWRjZmE4My5henVyZWNyLmlvIiwidmVyc2lvbiI6IjIuMCIsInJpZCI6IjUzNjQ5MTE4MjEzMTRkNjc5MjZkYTdhM2NkYzE3NGY4IiwiYWNjZXNzIjpbeyJUeXBlIjoicmVwb3NpdG9yeSIsIk5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiQWN0aW9ucyI6WyJwdWxsIiwicHVzaCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.z80W2pf4snT9rDfnttVlFIXQtyeUJhHvQDKtvY553FJeeMPXd3pN5Z9KuOAKjT7hbG53pRDtgBS9SBEpvj0uwPab6wdpm2nHqlcsBPl7kOIqspPH7-7XOyjMOuSfXSGNWhzLv3F2mPg7YWj6ZPUsQUZL6aN8OKl5hwZ-k_cFFFAhBvSjSpyHRehxyUkdISBNcr_9zkpZLBam02twuMuMsQHFo2k8amYpcVQaXY_EzVnbfN29gG9XbWd1KAtS75Dg6srTqH8QN0Llr-riWmiUxFRhKyBI_zcPmAmnZXa6mmknc_tW0l6ue6uTgFaPIX1ZYYpo_h3SswD88OH5q96Izg"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:56 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.316667' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/ + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:56 GMT + docker-distribution-api-version: + - registry/2.0 + docker-upload-uuid: + - 377ceeef-5696-4d08-9d23-e0d6808d5cb5 + location: + - /v2/ubuntu-vm-arm-template/blobs/uploads/377ceeef-5696-4d08-9d23-e0d6808d5cb5?_nouploadcache=false&_state=y6irBoTyBpc74WmUHCHXifGwSlipCltDAc3i5nlOdvV7Ik5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiVVVJRCI6IjM3N2NlZWVmLTU2OTYtNGQwOC05ZDIzLWUwZDY4MDhkNWNiNSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMy0wNy0yNlQxMzo0Mjo1Ni4xMDU5OTM3MDFaIn0%3D + range: + - 0-0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: "{\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"metadata\": {\n \"_generator\": {\n + \ \"name\": \"bicep\",\n \"version\": \"0.8.9.13224\",\n \"templateHash\": + \"14979664264804385741\"\n }\n },\n \"parameters\": {\n \"location\": + {\n \"type\": \"string\",\n \"defaultValue\": \"[resourceGroup().location]\"\n + \ },\n \"subnetName\": {\n \"type\": \"string\"\n },\n \"ubuntuVmName\": + {\n \"type\": \"string\",\n \"defaultValue\": \"ubuntu-vm\"\n },\n + \ \"virtualNetworkId\": {\n \"type\": \"string\"\n },\n \"sshPublicKeyAdmin\": + {\n \"type\": \"string\"\n },\n \"imageName\": {\n \"type\": + \"string\"\n }\n },\n \"variables\": {\n \"imageResourceGroup\": \"[resourceGroup().name]\",\n + \ \"subscriptionId\": \"[subscription().subscriptionId]\",\n \"vmSizeSku\": + \"Standard_D2s_v3\"\n },\n \"resources\": [\n {\n \"type\": \"Microsoft.Network/networkInterfaces\",\n + \ \"apiVersion\": \"2021-05-01\",\n \"name\": \"[format('{0}_nic', + parameters('ubuntuVmName'))]\",\n \"location\": \"[parameters('location')]\",\n + \ \"properties\": {\n \"ipConfigurations\": [\n {\n \"name\": + \"ipconfig1\",\n \"properties\": {\n \"subnet\": {\n + \ \"id\": \"[format('{0}/subnets/{1}', parameters('virtualNetworkId'), + parameters('subnetName'))]\"\n },\n \"primary\": true,\n + \ \"privateIPAddressVersion\": \"IPv4\"\n }\n }\n + \ ]\n }\n },\n {\n \"type\": \"Microsoft.Compute/virtualMachines\",\n + \ \"apiVersion\": \"2021-07-01\",\n \"name\": \"[parameters('ubuntuVmName')]\",\n + \ \"location\": \"[parameters('location')]\",\n \"properties\": {\n + \ \"hardwareProfile\": {\n \"vmSize\": \"[variables('vmSizeSku')]\"\n + \ },\n \"storageProfile\": {\n \"imageReference\": {\n + \ \"id\": \"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', + variables('subscriptionId'), variables('imageResourceGroup')), 'Microsoft.Compute/images', + parameters('imageName'))]\"\n },\n \"osDisk\": {\n \"osType\": + \"Linux\",\n \"name\": \"[format('{0}_disk', parameters('ubuntuVmName'))]\",\n + \ \"createOption\": \"FromImage\",\n \"caching\": \"ReadWrite\",\n + \ \"writeAcceleratorEnabled\": false,\n \"managedDisk\": + \"[json('{\\\"storageAccountType\\\": \\\"Premium_LRS\\\"}')]\",\n \"deleteOption\": + \"Delete\",\n \"diskSizeGB\": 30\n }\n },\n \"osProfile\": + {\n \"computerName\": \"[parameters('ubuntuVmName')]\",\n \"adminUsername\": + \"azureuser\",\n \"linuxConfiguration\": {\n \"disablePasswordAuthentication\": + true,\n \"ssh\": {\n \"publicKeys\": [\n {\n + \ \"path\": \"/home/azureuser/.ssh/authorized_keys\",\n \"keyData\": + \"[parameters('sshPublicKeyAdmin')]\"\n }\n ]\n + \ },\n \"provisionVMAgent\": true,\n \"patchSettings\": + {\n \"patchMode\": \"ImageDefault\",\n \"assessmentMode\": + \"ImageDefault\"\n }\n },\n \"secrets\": [],\n + \ \"allowExtensionOperations\": true\n },\n \"networkProfile\": + {\n \"networkInterfaces\": [\n {\n \"id\": + \"[resourceId('Microsoft.Network/networkInterfaces', format('{0}_nic', parameters('ubuntuVmName')))]\"\n + \ }\n ]\n }\n },\n \"dependsOn\": [\n \"[resourceId('Microsoft.Network/networkInterfaces', + format('{0}_nic', parameters('ubuntuVmName')))]\"\n ]\n }\n ]\n}" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '3591' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/377ceeef-5696-4d08-9d23-e0d6808d5cb5?_nouploadcache=false&_state=y6irBoTyBpc74WmUHCHXifGwSlipCltDAc3i5nlOdvV7Ik5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiVVVJRCI6IjM3N2NlZWVmLTU2OTYtNGQwOC05ZDIzLWUwZDY4MDhkNWNiNSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMy0wNy0yNlQxMzo0Mjo1Ni4xMDU5OTM3MDFaIn0%3D&digest=sha256%3Ae71bf56543dc33dc8e550a0c574efe9a4875754a4ddf74347e448dec2462798b + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:56 GMT + docker-content-digest: + - sha256:e71bf56543dc33dc8e550a0c574efe9a4875754a4ddf74347e448dec2462798b + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-arm-template/blobs/sha256:e71bf56543dc33dc8e550a0c574efe9a4875754a4ddf74347e448dec2462798b + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/ + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '286' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:56 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-arm-template:pull,push" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-arm-template%3Apull%2Cpush + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiI5OGZlZGY5My04MmFjLTQzYTctYmQ3MS05ZGZjNTlhYmZlNDkiLCJzdWIiOiJ1YnVudHUtdm0tYWNyLW1hbmlmZXN0LTEtMC0wIiwibmJmIjoxNjkwMzc4MDc2LCJleHAiOjE2OTAzNzk4NzYsImlhdCI6MTY5MDM3ODA3NiwiaXNzIjoiQXp1cmUgQ29udGFpbmVyIFJlZ2lzdHJ5IiwiYXVkIjoidWJ1bnR1cHVibGlzaGVydWJ1bnR1YWNyMjMxNWRjZmE4My5henVyZWNyLmlvIiwidmVyc2lvbiI6IjIuMCIsInJpZCI6IjUzNjQ5MTE4MjEzMTRkNjc5MjZkYTdhM2NkYzE3NGY4IiwiYWNjZXNzIjpbeyJUeXBlIjoicmVwb3NpdG9yeSIsIk5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiQWN0aW9ucyI6WyJwdWxsIiwicHVzaCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.C64_ds7czwe_9fwWjamPuU6Co0cdp0HJdRDC9BFKUXoRi-CX-E0ODLPVel418nOORJckQxPraqCpFMqWv1F4Bi-SsNFLcww3SP6ku7VtS45KlelEmhT4LuNbZtBBMUbbP2fYtB4jz7aAb-7ty7xsh0kljNb47gWKeoc_yYvgaZUHQVxvFdYoDdWQSoJyv3r7znyE3hC9SVbHI2jt_FSQT10us2c-p_u1zivsM8GB_pcCjHyYbDQwg4_zn62r2SHEYSpS5zZKRnkYymMIMV29HTsX1xsmUH0bmk7-11XQcxrcL7vhrBBjLgRiIO_MEm-rmuZA7QC3RlRkoHK5e2hfNQ"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:56 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.3' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/ + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:56 GMT + docker-distribution-api-version: + - registry/2.0 + docker-upload-uuid: + - 3aac3265-c404-4b7f-9891-921c3150d04f + location: + - /v2/ubuntu-vm-arm-template/blobs/uploads/3aac3265-c404-4b7f-9891-921c3150d04f?_nouploadcache=false&_state=eoGzfNWHRutGitouwu8OKW4HBcDE3_WBnHH-FFq3iH17Ik5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiVVVJRCI6IjNhYWMzMjY1LWM0MDQtNGI3Zi05ODkxLTkyMWMzMTUwZDA0ZiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMy0wNy0yNlQxMzo0Mjo1Ni45MzExMDkzNzhaIn0%3D + range: + - 0-0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/blobs/uploads/3aac3265-c404-4b7f-9891-921c3150d04f?_nouploadcache=false&_state=eoGzfNWHRutGitouwu8OKW4HBcDE3_WBnHH-FFq3iH17Ik5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiVVVJRCI6IjNhYWMzMjY1LWM0MDQtNGI3Zi05ODkxLTkyMWMzMTUwZDA0ZiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMy0wNy0yNlQxMzo0Mjo1Ni45MzExMDkzNzhaIn0%3D&digest=sha256%3Ae3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:57 GMT + docker-content-digest: + - sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-arm-template/blobs/sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: '{"schemaVersion": 2, "mediaType": "application/vnd.oci.image.manifest.v1+json", + "config": {"mediaType": "application/vnd.unknown.config.v1+json", "size": 0, + "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, + "layers": [{"mediaType": "application/vnd.oci.image.layer.v1.tar", "size": 3591, + "digest": "sha256:e71bf56543dc33dc8e550a0c574efe9a4875754a4ddf74347e448dec2462798b", + "annotations": {"org.opencontainers.image.title": "ubuntu_template.json"}}], + "annotations": {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '504' + Content-Type: + - application/vnd.oci.image.manifest.v1+json + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/manifests/1.0.0 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-arm-template","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '286' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:57 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-arm-template:pull,push" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-arm-template%3Apull%2Cpush + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiI0NDJlYTUyNS1hOWQ0LTQ5MmYtYWI0NS1hODMxNzAwODZjMjEiLCJzdWIiOiJ1YnVudHUtdm0tYWNyLW1hbmlmZXN0LTEtMC0wIiwibmJmIjoxNjkwMzc4MDc3LCJleHAiOjE2OTAzNzk4NzcsImlhdCI6MTY5MDM3ODA3NywiaXNzIjoiQXp1cmUgQ29udGFpbmVyIFJlZ2lzdHJ5IiwiYXVkIjoidWJ1bnR1cHVibGlzaGVydWJ1bnR1YWNyMjMxNWRjZmE4My5henVyZWNyLmlvIiwidmVyc2lvbiI6IjIuMCIsInJpZCI6IjUzNjQ5MTE4MjEzMTRkNjc5MjZkYTdhM2NkYzE3NGY4IiwiYWNjZXNzIjpbeyJUeXBlIjoicmVwb3NpdG9yeSIsIk5hbWUiOiJ1YnVudHUtdm0tYXJtLXRlbXBsYXRlIiwiQWN0aW9ucyI6WyJwdWxsIiwicHVzaCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.yo8hU6AYMFINYoZfrB08atl05hnYVuTBnj_rKtNutyqsvk4IKTNCQyMsF_N7HebRE9Vdgsiu9kc7gELn5lP2u4IvZS8LmNvsu-DCZI4N9A5CZhy0uAQb3Ih-Pk9oMXj3dPpL_A7M2Ffkq4tAtBt2ggS0v-kud7aRen52Epa_q66gaQVhUheHArDwESIn3dsSLKFHA7je3endSvnn3dc8MHa3EI_NkpPgfOS7ZmBOZKt5b_A9jKdWeF52wMtYAOjXoTF9VdmncfhSYhLk9MELqn6QeyLecWVFWNL9LzwpBMHmDFg6IWKZZC3jlW2RCnBCJi6JaSwbH5KEk9AV-4i2GQ"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:57 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.283333' + status: + code: 200 + message: OK +- request: + body: '{"schemaVersion": 2, "mediaType": "application/vnd.oci.image.manifest.v1+json", + "config": {"mediaType": "application/vnd.unknown.config.v1+json", "size": 0, + "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, + "layers": [{"mediaType": "application/vnd.oci.image.layer.v1.tar", "size": 3591, + "digest": "sha256:e71bf56543dc33dc8e550a0c574efe9a4875754a4ddf74347e448dec2462798b", + "annotations": {"org.opencontainers.image.title": "ubuntu_template.json"}}], + "annotations": {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '504' + Content-Type: + - application/vnd.oci.image.manifest.v1+json + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-arm-template/manifests/1.0.0 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:57 GMT + docker-content-digest: + - sha256:8923fa544da97914212bc9173ec512741d331940e4a2c7b6fbad979657a5c507 + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-arm-template/manifests/sha256:8923fa544da97914212bc9173ec512741d331940e4a2c7b6fbad979657a5c507 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd build + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkfunctiondefinitiongroups/ubuntu-vm-nfdg/networkfunctiondefinitionversions/1.0.0","name":"1.0.0","type":"microsoft.hybridnetwork/publishers/networkfunctiondefinitiongroups/networkfunctiondefinitionversions","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-26T13:41:20.6640217Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:41:20.6640217Z"},"properties":{"networkFunctionTemplate":{"networkFunctionApplications":[{"artifactProfile":{"vhdArtifactProfile":{"vhdName":"ubuntu-vm-vhd","vhdVersion":"1-0-0"},"artifactStore":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store"}},"deployParametersMappingRuleProfile":{"vhdImageMappingRuleProfile":{"userConfiguration":"{\"imageName\":\"ubuntu-vmImage\",\"azureDeployLocation\":\"{deployParameters.location}\"}"},"applicationEnablement":"Unknown"},"artifactType":"VhdImageFile","dependsOnProfile":null,"name":"ubuntu-vmImage"},{"artifactProfile":{"templateArtifactProfile":{"templateName":"ubuntu-vm-arm-template","templateVersion":"1.0.0"},"artifactStore":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr"}},"deployParametersMappingRuleProfile":{"templateMappingRuleProfile":{"templateParameters":"{\"location\":\"{deployParameters.location}\",\"subnetName\":\"{deployParameters.subnetName}\",\"ubuntuVmName\":\"{deployParameters.ubuntuVmName}\",\"virtualNetworkId\":\"{deployParameters.virtualNetworkId}\",\"sshPublicKeyAdmin\":\"{deployParameters.sshPublicKeyAdmin}\",\"imageName\":\"ubuntu-vmImage\"}"},"applicationEnablement":"Unknown"},"artifactType":"ArmTemplate","dependsOnProfile":null,"name":"ubuntu-vm"}],"nfviType":"AzureCore"},"versionState":"Preview","description":null,"deployParameters":"{\"$schema\":\"https://json-schema.org/draft-07/schema#\",\"title\":\"DeployParametersSchema\",\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\"},\"subnetName\":{\"type\":\"string\"},\"ubuntuVmName\":{\"type\":\"string\"},\"virtualNetworkId\":{\"type\":\"string\"},\"sshPublicKeyAdmin\":{\"type\":\"string\"}},\"required\":[\"location\",\"subnetName\",\"ubuntuVmName\",\"virtualNetworkId\",\"sshPublicKeyAdmin\"]}","networkFunctionType":"VirtualNetworkFunction","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2711' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:57 GMT + etag: + - '"0200c39f-0000-1100-0000-64c1228c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test?api-version=2022-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:42:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test","name":"patrykkulik-test","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"autoDelete":"true","expiresOn":"2023-08-20T10:48:11.8928180Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '301' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:57 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher","name":"ubuntuPublisher","type":"microsoft.hybridnetwork/publishers","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:35:08.3094719Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-24T10:35:08.3094719Z"},"properties":{"scope":"Private","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '550' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:58 GMT + etag: + - '"0b00b59c-0000-1100-0000-64be53e60000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr","name":"ubuntu-acr","type":"microsoft.hybridnetwork/publishers/artifactstores","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T10:36:42.2618346Z","lastModifiedBy":"b8ed041c-aa91-418e-8f47-20c70abc2de1","lastModifiedByType":"Application","lastModifiedAt":"2023-07-26T13:41:32.1146188Z"},"properties":{"storeType":"AzureContainerRegistry","replicationStrategy":"SingleReplication","managedResourceGroupConfiguration":{"name":"ubuntu-acr-HostedResources-7510103F","location":"uksouth"},"provisioningState":"Succeeded","storageResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ubuntu-acr-HostedResources-7510103F/providers/Microsoft.ContainerRegistry/registries/UbuntupublisherUbuntuAcr2315dcfa83"}}' + headers: + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:58 GMT + etag: + - '"0100f7a1-0000-1100-0000-64c1228c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "uksouth"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu","name":"ubuntu","type":"microsoft.hybridnetwork/publishers/networkservicedesigngroups","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T13:23:29.0796168Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:42:58.6170624Z"},"properties":{"description":null,"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:59 GMT + etag: + - '"05001305-0000-1100-0000-64c122e30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778","name":"3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu","status":"Accepted","startTime":"2023-07-26T13:42:59.410368Z"}' + headers: + cache-control: + - no-cache + content-length: + - '548' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:42:59 GMT + etag: + - '"01009920-0000-1100-0000-64c122e30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "6106670278831411745"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "acrManifestName": {"type": "string", "metadata": {"description": + "Name of the manifest to deploy for the ACR-backed Artifact Store"}}, "armTemplateName": + {"type": "string", "metadata": {"description": "The name under which to store + the ARM template"}}, "armTemplateVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM template artifact, in format A.B.C. + e.g. 6.13.0. If testing for development, you can use any numbers you like."}}}, + "resources": [{"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''acrArtifactStoreName''), parameters(''acrManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[parameters(''armTemplateName'')]", "artifactType": "ArmTemplate", "artifactVersion": + "[parameters(''armTemplateVersion'')]"}]}}]}, "parameters": {"location": {"value": + "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, "acrArtifactStoreName": + {"value": "ubuntu-acr"}, "acrManifestName": {"value": "ubuntu-nf-nsd-acr-manifest-1-0-0"}, + "armTemplateName": {"value": "ubuntu-vm-nfdg-nfd-artifact"}, "armTemplateVersion": + {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '1927' + Content-Type: + - application/json + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378985","name":"AOSM_CLI_deployment_1690378985","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6106670278831411745","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"acrManifestName":{"type":"String","value":"ubuntu-nf-nsd-acr-manifest-1-0-0"},"armTemplateName":{"type":"String","value":"ubuntu-vm-nfdg-nfd-artifact"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"0001-01-01T00:00:00Z","duration":"PT0S","correlationId":"f60691ee-e24a-4cbc-a883-c4d593ad423b","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1282' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:06 GMT + expires: + - '-1' + pragma: + - no-cache + 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' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "6106670278831411745"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "acrManifestName": {"type": "string", "metadata": {"description": + "Name of the manifest to deploy for the ACR-backed Artifact Store"}}, "armTemplateName": + {"type": "string", "metadata": {"description": "The name under which to store + the ARM template"}}, "armTemplateVersion": {"type": "string", "metadata": {"description": + "The version that you want to name the NFM template artifact, in format A.B.C. + e.g. 6.13.0. If testing for development, you can use any numbers you like."}}}, + "resources": [{"type": "Microsoft.Hybridnetwork/publishers/artifactStores/artifactManifests", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''acrArtifactStoreName''), parameters(''acrManifestName''))]", "location": + "[parameters(''location'')]", "properties": {"artifacts": [{"artifactName": + "[parameters(''armTemplateName'')]", "artifactType": "ArmTemplate", "artifactVersion": + "[parameters(''armTemplateVersion'')]"}]}}]}, "parameters": {"location": {"value": + "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, "acrArtifactStoreName": + {"value": "ubuntu-acr"}, "acrManifestName": {"value": "ubuntu-nf-nsd-acr-manifest-1-0-0"}, + "armTemplateName": {"value": "ubuntu-vm-nfdg-nfd-artifact"}, "armTemplateVersion": + {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '1927' + Content-Type: + - application/json + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378985","name":"AOSM_CLI_deployment_1690378985","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6106670278831411745","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"acrManifestName":{"type":"String","value":"ubuntu-nf-nsd-acr-manifest-1-0-0"},"armTemplateName":{"type":"String","value":"ubuntu-vm-nfdg-nfd-artifact"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-07-26T13:43:08.4539954Z","duration":"PT0.0006676S","correlationId":"a84edfe4-d8b7-4c90-92aa-02ca81149717","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378985/operationStatuses/08585112278979827087?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '1043' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112278979827087?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:09 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778","name":"3a55f1d1-5877-4483-abfa-ef6f900f02d8*0A2C88351F91E19B08EFFAF13C02A492976D31AA01E04643FC90923CE153B778","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu","status":"Succeeded","startTime":"2023-07-26T13:42:59.410368Z","endTime":"2023-07-26T13:43:00.838134Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '607' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:31 GMT + etag: + - '"01009b20-0000-1100-0000-64c122e40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu","name":"ubuntu","type":"microsoft.hybridnetwork/publishers/networkservicedesigngroups","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-24T13:23:29.0796168Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:42:58.6170624Z"},"properties":{"description":null,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '603' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:31 GMT + etag: + - '"05001b05-0000-1100-0000-64c122e50000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112278979827087?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:39 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690378985","name":"AOSM_CLI_deployment_1690378985","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6106670278831411745","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"acrManifestName":{"type":"String","value":"ubuntu-nf-nsd-acr-manifest-1-0-0"},"armTemplateName":{"type":"String","value":"ubuntu-vm-nfdg-nfd-artifact"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-07-26T13:43:29.9461841Z","duration":"PT21.4928563S","correlationId":"a84edfe4-d8b7-4c90-92aa-02ca81149717","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/artifactStores/artifactManifests","locations":["uksouth"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1296' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:40 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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "5366007890796286067"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "nsDesignGroup": {"type": "string", "metadata": {"description": + "Name of an existing Network Service Design Group"}}, "nsDesignVersion": {"type": + "string", "metadata": {"description": "The version of the NSDV you want to create, + in format A-B-C"}}, "nfviSiteName": {"type": "string", "defaultValue": "ubuntu_NFVI", + "metadata": {"description": "Name of the nfvi site"}}, "armTemplateVersion": + {"type": "string", "defaultValue": "1.0.0", "metadata": {"description": "The + version that you want to name the NF template artifact, in format A-B-C. e.g. + 6-13-0. Suggestion that this matches as best possible the SIMPL released version. + If testing for development, you can use any numbers you like."}}}, "variables": + {"$fxv#0": {"$schema": "https://json-schema.org/draft-07/schema#", "title": + "ubuntu_ConfigGroupSchema", "type": "object", "properties": {"ubuntu-vm-nfdg": + {"type": "object", "properties": {"deploymentParameters": {"type": "object", + "properties": {"location": {"type": "string"}, "subnetName": {"type": "string"}, + "ubuntuVmName": {"type": "string"}, "virtualNetworkId": {"type": "string"}, + "sshPublicKeyAdmin": {"type": "string"}}}, "ubuntu_vm_nfdg_nfd_version": {"type": + "string", "description": "The version of the ubuntu-vm-nfdg NFD to use. This + version must be compatible with (have the same parameters exposed as) 1.0.0."}}, + "required": ["deploymentParameters", "ubuntu_vm_nfdg_nfd_version"]}, "managedIdentity": + {"type": "string", "description": "The managed identity to use to deploy NFs + within this SNS. This should be of the form ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. If + you wish to use a system assigned identity, set this to a blank string."}}, + "required": ["ubuntu-vm-nfdg", "managedIdentity"]}, "$fxv#1": {"deploymentParameters": + "[[{configurationparameters(''ubuntu_ConfigGroupSchema'').ubuntu-vm-nfdg.deploymentParameters}]", + "ubuntu_vm_nfdg_nfd_version": "{configurationparameters(''ubuntu_ConfigGroupSchema'').ubuntu-vm-nfdg.ubuntu_vm_nfdg_nfd_version}", + "managedIdentity": "{configurationparameters(''ubuntu_ConfigGroupSchema'').managedIdentity}"}, + "armTemplateName": "ubuntu-vm-nfdg-nfd-artifact"}, "resources": [{"type": "Microsoft.Hybridnetwork/publishers/configurationGroupSchemas", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}'', parameters(''publisherName''), + ''ubuntu_ConfigGroupSchema'')]", "location": "[parameters(''location'')]", "properties": + {"schemaDefinition": "[string(variables(''$fxv#0''))]"}}, {"type": "Microsoft.Hybridnetwork/publishers/networkservicedesigngroups/networkservicedesignversions", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''nsDesignGroup''), parameters(''nsDesignVersion''))]", "location": + "[parameters(''location'')]", "properties": {"description": "Plain ubuntu VM", + "versionState": "Preview", "configurationGroupSchemaReferences": {"ubuntu_ConfigGroupSchema": + {"id": "[resourceId(''Microsoft.Hybridnetwork/publishers/configurationGroupSchemas'', + parameters(''publisherName''), ''ubuntu_ConfigGroupSchema'')]"}}, "nfvisFromSite": + {"nfvi1": {"name": "[parameters(''nfviSiteName'')]", "type": "AzureCore"}}, + "resourceElementTemplates": [{"name": "ubuntu-resource-element", "type": "NetworkFunctionDefinition", + "configuration": {"artifactProfile": {"artifactStoreReference": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''acrArtifactStoreName''))]"}, "artifactName": + "[variables(''armTemplateName'')]", "artifactVersion": "[parameters(''armTemplateVersion'')]"}, + "templateType": "ArmTemplate", "parameterValues": "[string(variables(''$fxv#1''))]"}, + "dependsOnProfile": {"installDependsOn": [], "uninstallDependsOn": [], "updateDependsOn": + []}}]}, "dependsOn": ["[resourceId(''Microsoft.Hybridnetwork/publishers/configurationGroupSchemas'', + parameters(''publisherName''), ''ubuntu_ConfigGroupSchema'')]"]}]}, "parameters": + {"location": {"value": "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, + "acrArtifactStoreName": {"value": "ubuntu-acr"}, "nsDesignGroup": {"value": + "ubuntu"}, "nsDesignVersion": {"value": "1.0.0"}, "nfviSiteName": {"value": + "ubuntu_NFVI"}, "armTemplateVersion": {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '4946' + Content-Type: + - application/json + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690379023","name":"AOSM_CLI_deployment_1690379023","type":"Microsoft.Resources/deployments","properties":{"templateHash":"5366007890796286067","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"nsDesignGroup":{"type":"String","value":"ubuntu"},"nsDesignVersion":{"type":"String","value":"1.0.0"},"nfviSiteName":{"type":"String","value":"ubuntu_NFVI"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"0001-01-01T00:00:00Z","duration":"PT0S","correlationId":"cb832760-e51d-4aa9-9806-81edb0e7c6c6","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/configurationGroupSchemas","locations":["uksouth"]},{"resourceType":"publishers/networkservicedesigngroups/networkservicedesignversions","locations":["uksouth"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","resourceType":"Microsoft.Hybridnetwork/publishers/configurationGroupSchemas","resourceName":"ubuntuPublisher/ubuntu_ConfigGroupSchema"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkservicedesigngroups/ubuntu/networkservicedesignversions/1.0.0","resourceType":"Microsoft.Hybridnetwork/publishers/networkservicedesigngroups/networkservicedesignversions","resourceName":"ubuntuPublisher/ubuntu/1.0.0"}],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkservicedesigngroups/ubuntu/networkservicedesignversions/1.0.0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '2318' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "metadata": {"_generator": {"name": "bicep", "version": + "0.8.9.13224", "templateHash": "5366007890796286067"}}, "parameters": {"location": + {"type": "string"}, "publisherName": {"type": "string", "metadata": {"description": + "Name of an existing publisher, expected to be in the resource group where you + deploy the template"}}, "acrArtifactStoreName": {"type": "string", "metadata": + {"description": "Name of an existing ACR-backed Artifact Store, deployed under + the publisher."}}, "nsDesignGroup": {"type": "string", "metadata": {"description": + "Name of an existing Network Service Design Group"}}, "nsDesignVersion": {"type": + "string", "metadata": {"description": "The version of the NSDV you want to create, + in format A-B-C"}}, "nfviSiteName": {"type": "string", "defaultValue": "ubuntu_NFVI", + "metadata": {"description": "Name of the nfvi site"}}, "armTemplateVersion": + {"type": "string", "defaultValue": "1.0.0", "metadata": {"description": "The + version that you want to name the NF template artifact, in format A-B-C. e.g. + 6-13-0. Suggestion that this matches as best possible the SIMPL released version. + If testing for development, you can use any numbers you like."}}}, "variables": + {"$fxv#0": {"$schema": "https://json-schema.org/draft-07/schema#", "title": + "ubuntu_ConfigGroupSchema", "type": "object", "properties": {"ubuntu-vm-nfdg": + {"type": "object", "properties": {"deploymentParameters": {"type": "object", + "properties": {"location": {"type": "string"}, "subnetName": {"type": "string"}, + "ubuntuVmName": {"type": "string"}, "virtualNetworkId": {"type": "string"}, + "sshPublicKeyAdmin": {"type": "string"}}}, "ubuntu_vm_nfdg_nfd_version": {"type": + "string", "description": "The version of the ubuntu-vm-nfdg NFD to use. This + version must be compatible with (have the same parameters exposed as) 1.0.0."}}, + "required": ["deploymentParameters", "ubuntu_vm_nfdg_nfd_version"]}, "managedIdentity": + {"type": "string", "description": "The managed identity to use to deploy NFs + within this SNS. This should be of the form ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. If + you wish to use a system assigned identity, set this to a blank string."}}, + "required": ["ubuntu-vm-nfdg", "managedIdentity"]}, "$fxv#1": {"deploymentParameters": + "[[{configurationparameters(''ubuntu_ConfigGroupSchema'').ubuntu-vm-nfdg.deploymentParameters}]", + "ubuntu_vm_nfdg_nfd_version": "{configurationparameters(''ubuntu_ConfigGroupSchema'').ubuntu-vm-nfdg.ubuntu_vm_nfdg_nfd_version}", + "managedIdentity": "{configurationparameters(''ubuntu_ConfigGroupSchema'').managedIdentity}"}, + "armTemplateName": "ubuntu-vm-nfdg-nfd-artifact"}, "resources": [{"type": "Microsoft.Hybridnetwork/publishers/configurationGroupSchemas", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}'', parameters(''publisherName''), + ''ubuntu_ConfigGroupSchema'')]", "location": "[parameters(''location'')]", "properties": + {"schemaDefinition": "[string(variables(''$fxv#0''))]"}}, {"type": "Microsoft.Hybridnetwork/publishers/networkservicedesigngroups/networkservicedesignversions", + "apiVersion": "2023-04-01-preview", "name": "[format(''{0}/{1}/{2}'', parameters(''publisherName''), + parameters(''nsDesignGroup''), parameters(''nsDesignVersion''))]", "location": + "[parameters(''location'')]", "properties": {"description": "Plain ubuntu VM", + "versionState": "Preview", "configurationGroupSchemaReferences": {"ubuntu_ConfigGroupSchema": + {"id": "[resourceId(''Microsoft.Hybridnetwork/publishers/configurationGroupSchemas'', + parameters(''publisherName''), ''ubuntu_ConfigGroupSchema'')]"}}, "nfvisFromSite": + {"nfvi1": {"name": "[parameters(''nfviSiteName'')]", "type": "AzureCore"}}, + "resourceElementTemplates": [{"name": "ubuntu-resource-element", "type": "NetworkFunctionDefinition", + "configuration": {"artifactProfile": {"artifactStoreReference": {"id": "[resourceId(''Microsoft.HybridNetwork/publishers/artifactStores'', + parameters(''publisherName''), parameters(''acrArtifactStoreName''))]"}, "artifactName": + "[variables(''armTemplateName'')]", "artifactVersion": "[parameters(''armTemplateVersion'')]"}, + "templateType": "ArmTemplate", "parameterValues": "[string(variables(''$fxv#1''))]"}, + "dependsOnProfile": {"installDependsOn": [], "uninstallDependsOn": [], "updateDependsOn": + []}}]}, "dependsOn": ["[resourceId(''Microsoft.Hybridnetwork/publishers/configurationGroupSchemas'', + parameters(''publisherName''), ''ubuntu_ConfigGroupSchema'')]"]}]}, "parameters": + {"location": {"value": "uksouth"}, "publisherName": {"value": "ubuntuPublisher"}, + "acrArtifactStoreName": {"value": "ubuntu-acr"}, "nsDesignGroup": {"value": + "ubuntu"}, "nsDesignVersion": {"value": "1.0.0"}, "nfviSiteName": {"value": + "ubuntu_NFVI"}, "armTemplateVersion": {"value": "1.0.0"}}, "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '4946' + Content-Type: + - application/json + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690379023","name":"AOSM_CLI_deployment_1690379023","type":"Microsoft.Resources/deployments","properties":{"templateHash":"5366007890796286067","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"nsDesignGroup":{"type":"String","value":"ubuntu"},"nsDesignVersion":{"type":"String","value":"1.0.0"},"nfviSiteName":{"type":"String","value":"ubuntu_NFVI"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-07-26T13:43:47.0987333Z","duration":"PT0.0004251S","correlationId":"c537f6f3-9668-4475-a9ee-6c4b21a5deb5","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/configurationGroupSchemas","locations":["uksouth"]},{"resourceType":"publishers/networkservicedesigngroups/networkservicedesignversions","locations":["uksouth"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","resourceType":"Microsoft.Hybridnetwork/publishers/configurationGroupSchemas","resourceName":"ubuntuPublisher/ubuntu_ConfigGroupSchema"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkservicedesigngroups/ubuntu/networkservicedesignversions/1.0.0","resourceType":"Microsoft.Hybridnetwork/publishers/networkservicedesigngroups/networkservicedesignversions","resourceName":"ubuntuPublisher/ubuntu/1.0.0"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690379023/operationStatuses/08585112278587615767?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '1882' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112278587615767?api-version=2022-09-01 + response: + body: + string: '{"status":"Accepted"}' + headers: + cache-control: + - no-cache + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:43:46 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112278587615767?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44: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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585112278587615767?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:47 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/patrykkulik-test/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Resources/deployments/AOSM_CLI_deployment_1690379023","name":"AOSM_CLI_deployment_1690379023","type":"Microsoft.Resources/deployments","properties":{"templateHash":"5366007890796286067","parameters":{"location":{"type":"String","value":"uksouth"},"publisherName":{"type":"String","value":"ubuntuPublisher"},"acrArtifactStoreName":{"type":"String","value":"ubuntu-acr"},"nsDesignGroup":{"type":"String","value":"ubuntu"},"nsDesignVersion":{"type":"String","value":"1.0.0"},"nfviSiteName":{"type":"String","value":"ubuntu_NFVI"},"armTemplateVersion":{"type":"String","value":"1.0.0"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-07-26T13:44:28.2026218Z","duration":"PT41.1043136S","correlationId":"c537f6f3-9668-4475-a9ee-6c4b21a5deb5","providers":[{"namespace":"Microsoft.Hybridnetwork","resourceTypes":[{"resourceType":"publishers/configurationGroupSchemas","locations":["uksouth"]},{"resourceType":"publishers/networkservicedesigngroups/networkservicedesignversions","locations":["uksouth"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","resourceType":"Microsoft.Hybridnetwork/publishers/configurationGroupSchemas","resourceName":"ubuntuPublisher/ubuntu_ConfigGroupSchema"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkservicedesigngroups/ubuntu/networkservicedesignversions/1.0.0","resourceType":"Microsoft.Hybridnetwork/publishers/networkservicedesigngroups/networkservicedesignversions","resourceName":"ubuntuPublisher/ubuntu/1.0.0"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/networkservicedesigngroups/ubuntu/networkservicedesignversions/1.0.0"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '2332' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:47 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: + - aosm nsd publish + Connection: + - keep-alive + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.Hybridnetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0","name":"ubuntu-nf-nsd-acr-manifest-1-0-0","type":"microsoft.hybridnetwork/publishers/artifactstores/artifactmanifests","location":"uksouth","systemData":{"createdBy":"patrykkulik@microsoft.com","createdByType":"User","createdAt":"2023-07-26T13:43:10.6373425Z","lastModifiedBy":"patrykkulik@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-07-26T13:43:10.6373425Z"},"properties":{"artifacts":[{"artifactName":"ubuntu-vm-nfdg-nfd-artifact","artifactType":"ArmTemplate","artifactVersion":"1.0.0"}],"artifactManifestState":"Uploading","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '811' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:47 GMT + etag: + - '"010031da-0000-1100-0000-64c122fd0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd publish + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --debug + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0/listCredential?api-version=2023-04-01-preview + response: + body: + string: '{"username":"ubuntu-nf-nsd-acr-manifest-1-0-0","acrToken":"DXjNIWkqhbrWo0qHzqML5VnpFDPvUdlRUWQyObizc2+ACRBNLJYR","acrServerUrl":"https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io","repositories":["ubuntu-vm-nfdg-nfd-artifact"],"expiry":"2023-07-27T13:44:48.98326+00:00","credentialType":"AzureContainerRegistryScopedToken"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/ + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:53 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-nfdg-nfd-artifact:pull,push" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-nfdg-nfd-artifact%3Apull%2Cpush + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiJmNTFmNWFhZC1lNWJmLTQxMzUtYWIyNy01ODM2NWE4ZWQxMzMiLCJzdWIiOiJ1YnVudHUtbmYtbnNkLWFjci1tYW5pZmVzdC0xLTAtMCIsIm5iZiI6MTY5MDM3ODE5MywiZXhwIjoxNjkwMzc5OTkzLCJpYXQiOjE2OTAzNzgxOTMsImlzcyI6IkF6dXJlIENvbnRhaW5lciBSZWdpc3RyeSIsImF1ZCI6InVidW50dXB1Ymxpc2hlcnVidW50dWFjcjIzMTVkY2ZhODMuYXp1cmVjci5pbyIsInZlcnNpb24iOiIyLjAiLCJyaWQiOiI1MzY0OTExODIxMzE0ZDY3OTI2ZGE3YTNjZGMxNzRmOCIsImFjY2VzcyI6W3siVHlwZSI6InJlcG9zaXRvcnkiLCJOYW1lIjoidWJ1bnR1LXZtLW5mZGctbmZkLWFydGlmYWN0IiwiQWN0aW9ucyI6WyJwdWxsIiwicHVzaCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.f-6ct5FdjqSbHu60kVj2eOYwB1L81Yv0uVoCIZaELx12YGISRbIDa9tKy4t2_Xo1IFnwDaQtZnNJ49r3Je0Nrm8gx-9umkCUoA79v4_mEe57098Tu0DhazqAwgSH93n28OwvlDJVOXwxliBjHpLA47BvSGOaYT0C_me2j-2v5M6jw7Xduer71y4AAgVZ4XgJjJK9XZ_WuO0jYw0U7zlbxpACLR2FtRcKKB2uGwpSsvkmWBY3oadfjZf_Ut3amI1AL5XeQ478zaPqyrqRAsLQJP35Xm66J2hU5XSysq7KpVq6iYfzQPIuoqJ_7DayJp-mSiauP075KbactrUPV8lrCw"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:53 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.316667' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/ + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:44:53 GMT + docker-distribution-api-version: + - registry/2.0 + docker-upload-uuid: + - 1d1c84ae-6eb6-42cf-92ca-ac315c1d1f0e + location: + - /v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/1d1c84ae-6eb6-42cf-92ca-ac315c1d1f0e?_nouploadcache=false&_state=AY-45rXcDwt4GOR8MpkUylQseW81p_yDQO_9ZiJ7yKF7Ik5hbWUiOiJ1YnVudHUtdm0tbmZkZy1uZmQtYXJ0aWZhY3QiLCJVVUlEIjoiMWQxYzg0YWUtNmViNi00MmNmLTkyY2EtYWMzMTVjMWQxZjBlIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIzLTA3LTI2VDEzOjQ0OjUzLjgzNzU3NDEwOVoifQ%3D%3D + range: + - 0-0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: "{\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"metadata\": {\n \"_generator\": + {\n \"name\": \"bicep\",\n \"version\": \"0.8.9.13224\",\n + \ \"templateHash\": \"711670018733537283\"\n }\n },\n \"parameters\": + {\n \"publisherName\": {\n \"type\": \"string\",\n \"defaultValue\": + \"ubuntuPublisher\",\n \"metadata\": {\n \"description\": + \"Publisher where the NFD is published\"\n }\n },\n \"networkFunctionDefinitionGroupName\": + {\n \"type\": \"string\",\n \"defaultValue\": \"ubuntu-vm-nfdg\",\n + \ \"metadata\": {\n \"description\": \"NFD Group name + for the Network Function\"\n }\n },\n \"ubuntu_vm_nfdg_nfd_version\": + {\n \"type\": \"string\",\n \"metadata\": {\n \"description\": + \"NFD version\"\n }\n },\n \"networkFunctionDefinitionOfferingLocation\": + {\n \"type\": \"string\",\n \"defaultValue\": \"uksouth\",\n + \ \"metadata\": {\n \"description\": \"Offering location + for the Network Function\"\n }\n },\n \"managedIdentity\": + {\n \"type\": \"string\",\n \"metadata\": {\n \"description\": + \"The managed identity that should be used to create the NF.\"\n }\n + \ },\n \"location\": {\n \"type\": \"string\",\n \"defaultValue\": + \"uksouth\"\n },\n \"nfviType\": {\n \"type\": \"string\",\n + \ \"defaultValue\": \"AzureCore\"\n },\n \"resourceGroupId\": + {\n \"type\": \"string\",\n \"defaultValue\": \"[resourceGroup().id]\"\n + \ },\n \"deploymentParameters\": {\n \"type\": \"array\"\n + \ }\n },\n \"variables\": {\n \"identityObject\": \"[if(equals(parameters('managedIdentity'), + ''), createObject('type', 'SystemAssigned'), createObject('type', 'UserAssigned', + 'userAssignedIdentities', createObject(format('{0}', parameters('managedIdentity')), + createObject())))]\"\n },\n \"resources\": [\n {\n \"copy\": + {\n \"name\": \"nf_resource\",\n \"count\": \"[length(parameters('deploymentParameters'))]\"\n + \ },\n \"type\": \"Microsoft.HybridNetwork/networkFunctions\",\n + \ \"apiVersion\": \"2023-04-01-preview\",\n \"name\": \"[format('ubuntu_NF{0}', + copyIndex())]\",\n \"location\": \"[parameters('location')]\",\n + \ \"identity\": \"[variables('identityObject')]\",\n \"properties\": + {\n \"publisherName\": \"[parameters('publisherName')]\",\n \"publisherScope\": + \"Private\",\n \"networkFunctionDefinitionGroupName\": \"[parameters('networkFunctionDefinitionGroupName')]\",\n + \ \"networkFunctionDefinitionVersion\": \"[parameters('ubuntu_vm_nfdg_nfd_version')]\",\n + \ \"networkFunctionDefinitionOfferingLocation\": \"[parameters('networkFunctionDefinitionOfferingLocation')]\",\n + \ \"nfviType\": \"[parameters('nfviType')]\",\n \"nfviId\": + \"[parameters('resourceGroupId')]\",\n \"allowSoftwareUpdate\": + true,\n \"deploymentValues\": \"[string(parameters('deploymentParameters')[copyIndex()])]\"\n + \ }\n }\n ]\n}" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '3321' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/1d1c84ae-6eb6-42cf-92ca-ac315c1d1f0e?_nouploadcache=false&_state=AY-45rXcDwt4GOR8MpkUylQseW81p_yDQO_9ZiJ7yKF7Ik5hbWUiOiJ1YnVudHUtdm0tbmZkZy1uZmQtYXJ0aWZhY3QiLCJVVUlEIjoiMWQxYzg0YWUtNmViNi00MmNmLTkyY2EtYWMzMTVjMWQxZjBlIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIzLTA3LTI2VDEzOjQ0OjUzLjgzNzU3NDEwOVoifQ%3D%3D&digest=sha256%3A730d733b8d58f3c59acb7fa0e0195eca7e404af75de22d6c4d62ecd16d95d9f2 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-content-digest: + - sha256:730d733b8d58f3c59acb7fa0e0195eca7e404af75de22d6c4d62ecd16d95d9f2 + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-nfdg-nfd-artifact/blobs/sha256:730d733b8d58f3c59acb7fa0e0195eca7e404af75de22d6c4d62ecd16d95d9f2 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/ + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-nfdg-nfd-artifact:pull,push" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-nfdg-nfd-artifact%3Apull%2Cpush + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiI3ZTk0MTNkYy1mMTFlLTRkOTMtOTM0Ny05NDJkOWQ1MDU4NWEiLCJzdWIiOiJ1YnVudHUtbmYtbnNkLWFjci1tYW5pZmVzdC0xLTAtMCIsIm5iZiI6MTY5MDM3ODE5NCwiZXhwIjoxNjkwMzc5OTk0LCJpYXQiOjE2OTAzNzgxOTQsImlzcyI6IkF6dXJlIENvbnRhaW5lciBSZWdpc3RyeSIsImF1ZCI6InVidW50dXB1Ymxpc2hlcnVidW50dWFjcjIzMTVkY2ZhODMuYXp1cmVjci5pbyIsInZlcnNpb24iOiIyLjAiLCJyaWQiOiI1MzY0OTExODIxMzE0ZDY3OTI2ZGE3YTNjZGMxNzRmOCIsImFjY2VzcyI6W3siVHlwZSI6InJlcG9zaXRvcnkiLCJOYW1lIjoidWJ1bnR1LXZtLW5mZGctbmZkLWFydGlmYWN0IiwiQWN0aW9ucyI6WyJwdWxsIiwicHVzaCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.Pr7HHAn6OoeD5cubZC12BEpUxFWZ3zlZv7V82O2n38mWkiaeP979NedrM9RqXuZPEa04sWMItETK70nazA1EKly1pu8yTL1C_G2ZaEAKIGiihyQZnhMFLw98A7ouarE1DD-gUZcRXPMp4NUzuFExp1Od8jf-MkOcya7OJVgmV_acTrYcWjrFOWYjgFsEopViivwps7zYYTo3gsL4gv11FI3fU2WsWHQ7NZDZJrvs_ULhaaknmpFgO4xgWhceN4XcYqP8S8fs2fSWaIoHhA63H3oTDSFCkBxjDgvjsCUFtZQhGFUTpKe6OzxOPL_Fgh_MUhUlynqslQZQbrIuOdwBKw"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:54 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.3' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/ + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-distribution-api-version: + - registry/2.0 + docker-upload-uuid: + - 006cb224-a270-4a9e-b88f-9d754846feb4 + location: + - /v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/006cb224-a270-4a9e-b88f-9d754846feb4?_nouploadcache=false&_state=9SltznBEOSjQ234hgy5IlEZ1HIW-nv9btgBk1Rj-7Od7Ik5hbWUiOiJ1YnVudHUtdm0tbmZkZy1uZmQtYXJ0aWZhY3QiLCJVVUlEIjoiMDA2Y2IyMjQtYTI3MC00YTllLWI4OGYtOWQ3NTQ4NDZmZWI0IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIzLTA3LTI2VDEzOjQ0OjU0LjExNTYyMzczNloifQ%3D%3D + range: + - 0-0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/octet-stream + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/blobs/uploads/006cb224-a270-4a9e-b88f-9d754846feb4?_nouploadcache=false&_state=9SltznBEOSjQ234hgy5IlEZ1HIW-nv9btgBk1Rj-7Od7Ik5hbWUiOiJ1YnVudHUtdm0tbmZkZy1uZmQtYXJ0aWZhY3QiLCJVVUlEIjoiMDA2Y2IyMjQtYTI3MC00YTllLWI4OGYtOWQ3NTQ4NDZmZWI0IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIzLTA3LTI2VDEzOjQ0OjU0LjExNTYyMzczNloifQ%3D%3D&digest=sha256%3Ae3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-content-digest: + - sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-nfdg-nfd-artifact/blobs/sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: '{"schemaVersion": 2, "mediaType": "application/vnd.oci.image.manifest.v1+json", + "config": {"mediaType": "application/vnd.unknown.config.v1+json", "size": 0, + "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, + "layers": [{"mediaType": "application/vnd.oci.image.layer.v1.tar", "size": 3321, + "digest": "sha256:730d733b8d58f3c59acb7fa0e0195eca7e404af75de22d6c4d62ecd16d95d9f2", + "annotations": {"org.opencontainers.image.title": "nf_definition.json"}}], "annotations": + {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '502' + Content-Type: + - application/vnd.oci.image.manifest.v1+json + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/manifests/1.0.0 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"pull"},{"Type":"repository","Name":"ubuntu-vm-nfdg-nfd-artifact","Action":"push"}]}]} + + ' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token",service="ubuntupublisherubuntuacr2315dcfa83.azurecr.io",scope="repository:ubuntu-vm-nfdg-nfd-artifact:push,pull" + x-content-type-options: + - nosniff + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Service: + - ubuntupublisherubuntuacr2315dcfa83.azurecr.io + User-Agent: + - oras-py + method: GET + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/oauth2/token?service=ubuntupublisherubuntuacr2315dcfa83.azurecr.io&scope=repository%3Aubuntu-vm-nfdg-nfd-artifact%3Apush%2Cpull + response: + body: + string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkNPQVU6UERZSDo0SVJYOjM2SEI6TFYzUDpWNFBGOko0NzQ6SzNOSjpPS1JCOlRZQUo6NEc0Szo1Q1NEIn0.eyJqdGkiOiIyMzllN2Q1ZS1jODg2LTQxOGYtODhhNC1jNTc5M2JlZjQ3ZTciLCJzdWIiOiJ1YnVudHUtbmYtbnNkLWFjci1tYW5pZmVzdC0xLTAtMCIsIm5iZiI6MTY5MDM3ODE5NCwiZXhwIjoxNjkwMzc5OTk0LCJpYXQiOjE2OTAzNzgxOTQsImlzcyI6IkF6dXJlIENvbnRhaW5lciBSZWdpc3RyeSIsImF1ZCI6InVidW50dXB1Ymxpc2hlcnVidW50dWFjcjIzMTVkY2ZhODMuYXp1cmVjci5pbyIsInZlcnNpb24iOiIyLjAiLCJyaWQiOiI1MzY0OTExODIxMzE0ZDY3OTI2ZGE3YTNjZGMxNzRmOCIsImFjY2VzcyI6W3siVHlwZSI6InJlcG9zaXRvcnkiLCJOYW1lIjoidWJ1bnR1LXZtLW5mZGctbmZkLWFydGlmYWN0IiwiQWN0aW9ucyI6WyJwdXNoIiwicHVsbCJdfV0sInJvbGVzIjpbXSwiZ3JhbnRfdHlwZSI6ImFjY2Vzc190b2tlbiJ9.jyNup_Z8NybheBzUNkyOkzqwN3VAewsPtwjgFcgo4KnpCl3pcAjaBlnKloPgKmfgmTbNSxam9DruQXewae9tYDq4V6qQOyTngu5DtJPeqeBOs_rioO6mPPPE_rh2R2RC_smxIDRV6RLgyj2Gp0sexSvD0OR4-IkVkesmZ_ujjxK9hwchV_BU_SaydxArhln1U29DMkuujns4_5jWJfUvnuINCHDOUg6G9tbdm4vowHezvRbiXhXHSbdWMWJIaPBliS0-gV41LcvhOkBHH5zOMhjTm5t2czZbsnDZ459nsYp0oTSCzw0wDEzQ-OU0w6vPw6B7vffDmZ1ctHZUgo_RKg"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:54 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '333.283333' + status: + code: 200 + message: OK +- request: + body: '{"schemaVersion": 2, "mediaType": "application/vnd.oci.image.manifest.v1+json", + "config": {"mediaType": "application/vnd.unknown.config.v1+json", "size": 0, + "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, + "layers": [{"mediaType": "application/vnd.oci.image.layer.v1.tar", "size": 3321, + "digest": "sha256:730d733b8d58f3c59acb7fa0e0195eca7e404af75de22d6c4d62ecd16d95d9f2", + "annotations": {"org.opencontainers.image.title": "nf_definition.json"}}], "annotations": + {}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '502' + Content-Type: + - application/vnd.oci.image.manifest.v1+json + User-Agent: + - python-requests/2.26.0 + method: PUT + uri: https://ubuntupublisherubuntuacr2315dcfa83.azurecr.io/v2/ubuntu-vm-nfdg-nfd-artifact/manifests/1.0.0 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '0' + date: + - Wed, 26 Jul 2023 13:44:54 GMT + docker-content-digest: + - sha256:d9933b93bccf8761b3730a85d86b8f01555c8a4b73e36a8d31de964e5ff01594 + docker-distribution-api-version: + - registry/2.0 + location: + - /v2/ubuntu-vm-nfdg-nfd-artifact/manifests/sha256:d9933b93bccf8761b3730a85d86b8f01555c8a4b73e36a8d31de964e5ff01594 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:55 GMT + etag: + - '"0200f8a2-0000-1100-0000-64c123570000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","name":"d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0","status":"Deleting","startTime":"2023-07-26T13:44:55.6221799Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:44:55 GMT + etag: + - '"01006121-0000-1100-0000-64c123570000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","name":"d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0","status":"Deleting","startTime":"2023-07-26T13:44:55.6221799Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:45:26 GMT + etag: + - '"01006121-0000-1100-0000-64c123570000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","name":"d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0","status":"Deleting","startTime":"2023-07-26T13:44:55.6221799Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:45:58 GMT + etag: + - '"01006121-0000-1100-0000-64c123570000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","name":"d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0","status":"Succeeded","startTime":"2023-07-26T13:44:55.6221799Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:46:28 GMT + etag: + - '"0100ce21-0000-1100-0000-64c1239a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","name":"d58469b4-88f9-4f43-8e05-348c3f8694f2*D624C07777555D34927C0A2B08D32D894F860B37ED62687F7FB2A1AE8B045BC5","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkFunctionDefinitionGroups/ubuntu-vm-nfdg/networkFunctionDefinitionVersions/1.0.0","status":"Succeeded","startTime":"2023-07-26T13:44:55.6221799Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:46:28 GMT + etag: + - '"0100ce21-0000-1100-0000-64c1239a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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: + - aosm nfd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:46:29 GMT + etag: + - '"010084dc-0000-1100-0000-64c123b60000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","name":"a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0","status":"Deleting","startTime":"2023-07-26T13:46:29.7049035Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '594' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:46:29 GMT + etag: + - '"01000722-0000-1100-0000-64c123b50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","name":"a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:46:29.7049035Z","endTime":"2023-07-26T13:46:30.8639422Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '654' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:00 GMT + etag: + - '"01000a22-0000-1100-0000-64c123b60000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","name":"a5be6087-5cd5-4df1-b562-31bc65c2ffcc*A14CB3C906EF24FA3D408DD057F2AE24B571D82B0D5EA33C6DE47C5BDC4F2A9B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-blob-store/artifactManifests/ubuntu-vm-sa-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:46:29.7049035Z","endTime":"2023-07-26T13:46:30.8639422Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '654' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:00 GMT + etag: + - '"01000a22-0000-1100-0000-64c123b60000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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: + - aosm nfd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:00 GMT + etag: + - '"0100f8dc-0000-1100-0000-64c123d50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","name":"78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0","status":"Deleting","startTime":"2023-07-26T13:47:01.359381Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '587' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:01 GMT + etag: + - '"01005522-0000-1100-0000-64c123d50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","name":"78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:47:01.359381Z","endTime":"2023-07-26T13:47:15.9042981Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '647' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:31 GMT + etag: + - '"01006822-0000-1100-0000-64c123e30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nfd delete + Connection: + - keep-alive + ParameterSetName: + - --definition-type -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","name":"78045eb9-d757-4ced-93d2-8619c65398af*D2486BCAB99E2BCF72D1AA248612DB2BD4F1B7EC473B74FDCBE40C6CD1EDB443","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-vm-acr-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:47:01.359381Z","endTime":"2023-07-26T13:47:15.9042981Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '647' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:31 GMT + etag: + - '"01006822-0000-1100-0000-64c123e30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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: + - aosm nsd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu/networkServiceDesignVersions/1.0.0?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:33 GMT + etag: + - '"0100f039-0000-1100-0000-64c123f50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","name":"a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu/networkServiceDesignVersions/1.0.0","status":"Deleting","startTime":"2023-07-26T13:47:33.5010058Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '584' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:47:33 GMT + etag: + - '"01008b22-0000-1100-0000-64c123f50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","name":"a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu/networkServiceDesignVersions/1.0.0","status":"Succeeded","startTime":"2023-07-26T13:47:33.5010058Z","endTime":"2023-07-26T13:47:36.3888318Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '644' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:05 GMT + etag: + - '"01008f22-0000-1100-0000-64c123f80000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","name":"a9c7dd86-ed10-42dc-b97a-1fb63487ef75*1846D68E68668C8C67B84D44A208FE839BD2E9DD81A439CF0FA33146989C6224","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/networkServiceDesignGroups/ubuntu/networkServiceDesignVersions/1.0.0","status":"Succeeded","startTime":"2023-07-26T13:47:33.5010058Z","endTime":"2023-07-26T13:47:36.3888318Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '644' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:05 GMT + etag: + - '"01008f22-0000-1100-0000-64c123f80000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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: + - aosm nsd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:06 GMT + etag: + - '"0100cadd-0000-1100-0000-64c124160000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","name":"f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0","status":"Deleting","startTime":"2023-07-26T13:48:06.2563537Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '592' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:06 GMT + etag: + - '"0100bc22-0000-1100-0000-64c124160000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","name":"f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:48:06.2563537Z","endTime":"2023-07-26T13:48:29.6040723Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '652' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:35 GMT + etag: + - '"0100e722-0000-1100-0000-64c1242d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","name":"f4730ac5-7a07-4e27-a171-d8c5b5aafcfc*E1780600141AA23F055FD4F1BF09AFB8B879A597CAB5AF25D9972BA80599BA79","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/artifactStores/ubuntu-acr/artifactManifests/ubuntu-nf-nsd-acr-manifest-1-0-0","status":"Succeeded","startTime":"2023-07-26T13:48:06.2563537Z","endTime":"2023-07-26T13:48:29.6040723Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '652' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:35 GMT + etag: + - '"0100e722-0000-1100-0000-64c1242d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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: + - aosm nsd delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema?api-version=2023-04-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:36 GMT + etag: + - '"0200f702-0000-1100-0000-64c124350000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-build-version: + - 1.0.02386.1640 + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","name":"faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","status":"Deleting","startTime":"2023-07-26T13:48:37.2309542Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:48:37 GMT + etag: + - '"0100ee22-0000-1100-0000-64c124350000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.HybridNetwork/locations/uksouth/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","name":"faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","status":"Succeeded","startTime":"2023-07-26T13:48:37.2309542Z","endTime":"2023-07-26T13:48:41.6355282Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:49:06 GMT + etag: + - '"0100f722-0000-1100-0000-64c124390000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aosm nsd delete + Connection: + - keep-alive + ParameterSetName: + - -f --debug --force + User-Agent: + - AZURECLI/2.48.1 azsdk-python-hybridnetwork/2020-01-01-preview Python/3.8.10 + (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73?api-version=2020-01-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.HybridNetwork/locations/UKSOUTH/operationStatuses/faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","name":"faa4dbd8-9f9a-435b-960a-19fa8428df04*11248D1E508C64951FD5472E112C703E359E13297009740D5C18AF47B65BEF73","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/patrykkulik-test/providers/Microsoft.HybridNetwork/publishers/ubuntuPublisher/configurationGroupSchemas/ubuntu_ConfigGroupSchema","status":"Succeeded","startTime":"2023-07-26T13:48:37.2309542Z","endTime":"2023-07-26T13:48:41.6355282Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 26 Jul 2023 13:49:06 GMT + etag: + - '"0100f722-0000-1100-0000-64c124390000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/cnf_mocks/nginxdemo-0.1.0.tgz b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/cnf_mocks/nginxdemo-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..06a7a4ae7ba8871f2b60cb0fb475547d0f5de1f3 GIT binary patch literal 4509 zcmV;O5n}EiiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH+}Z`(SO?{9sIIVFpEumH zG-1#SLhqr+`B>UZrT-Jca#X*<0Bq3zgWl18Q~&!1hmZPyA7uyL;*jJ_gOk5g>2gv8 z-VS^oQw3B3fq%aF@V+w?G9_AL0z=Bs0KCPR5s5G%l9B;K1zNxWAtOp*0+ee3Q;|#1 zm}ZPZ(n!(a+;KAwLt zUFb2w8>#7##2U`EkO*&%KRt)BxWWlaxWc^&!kEaU6N>~B+rV}M##jO231~6`$|1pw ziD`=5IY19U&S{9|{bPzAm?jY@ZAR(=WI1DJg3)*y!O8Gc=rf55xh@8DmNRyau|%yR z`1*&nk{>51B~35_-}i<&V@n@Bg>ph;d=tl(Kb9-!8OC%-QNh(1^%x}(DByrNKu}|m zv&1kzmPj-v9u!Xz3<*gloI8n5jrXE(Ofq555lJd0pI3`4_> zRe&+c$bd4cDJsV$fJBO{eD1)T_wVhqM3Q{uZ2CzE{a4CRO_jzpvcqryIe(*01vdcA z&wp1aBj^>xSZ0|X^fbc=j#;iW%9ArQ8-&ymybL{$@{vSki9&AXN>WLHa4s}49@W+t zqcOc*<^z-*jfzmwEpP-eBT5y%wG~h^)giI*zrG>d_W;I1=>mJlzC_Mtckr5|8N+~y zm@r!pkP$t0^V5uqxkt;v4k$Z&Ppx-fz|hf56>P40+i?gxt(|!imB?l6WL1dp9|*b1 z31d@`7>hJTp4cg;1t>e^r;rpTYTn-It^kH)f}o9sBE~|+f~%N{+z}R!g_+jIqM6y4 zE0lpVXM`yMl$+VCP#I!*?EXuwjLboBKt7>TaAOq|Tv0s+Mzv{6LE#{wqhdZ3~Z! z1kaIStc8q>bUiJYF$s2_+sQ?SL&~Y1+Uke)e2?X~w)juQV@yf#O$mNieQb#Tjt&l* z@n8Qae2o9@rOd1g@OPcq{RsTA)>+i;nhDS;CWDZpZX(H0cfzA?0r}iDBuPSzh7)!s zMTXLNV&D1C0wSw_pA{a*v@DFl!q;^;t^0hw2)c;;rcrAgv>B2Ze8X7#^U4~W-weQ( z$tkfYEh!(hW3j>B9gbw7&ehKY&DQ$0l(tYjZ&L-jcZ*k((Jc^qYtU~c)@Jm*EE^Ng zui!P|(~m>Hh=MlLL8K(p6=b*&?w8JtS~$6y!U61Wd*`&)W2HR@p*&V6e-BNmM|8e_}puQe@ z;239lv*m#as_*`-<}T$LM<`dJD3-SmJQVf+im}D+)US<1gSNRSU%1~q|L?yz>OJoN+(+pJ@H@IKXp&i{Z1foZ{^>morXX|9i^Cj+5Q{V=JW-K1 zn{|K=A^76<49kOxVqFI}Hx@z?K0??vD-(!bFG1V&nt=tVpaZ*da9_t-XS12@XR>4Ik|;z2#kes z`0(1eKsf#Q_T9zV$4{SM?>@QA2N-JxBh=987;~&L5+fKQJ|RP*FgTrmy}5yofNx50 zGuqewEKnK7fx)W2hJOUSAmYX^&*qfDM0w2e1i`P)XUp9y-;VWZgSeBk25APd`Y8gf z88@^kO?0jTk|ahDXulONH@+nx9t$Wo5qAqRqTM;OR`C73Ajy9dMtF>J9q$3an5PI% zG^At-np`3f7~&PAl;^rQ!8Y@`juKAJic@JaA(WYE8q~eaKSd5P;c!KCJa&hocAOxF zbv@YoVL7Ww44td3q_0<`G1>35qBq0=diKKQelKbsXw_=NHVuc4GR zt1+_FKnR~&9Sf|YIhFEnT4q2sl*ka<5Ud^TN@biMt!|->XCL2QoWA++uEDTOB->7S z20qEMVDV_xG<@C8%!-lEm)lXUv|-rmW`BlHE0rrnO%kGs#a&~j|Ai{5OP==jkAg4= zgI@G9d>IzU^)AJtX2VUSRC2;_s52DuipT_ZOICqt9=#0fR`H?z(PO#a(iZ<+jFDw1 zRiLvwNd?;!{~h#>8u8!Z;nBfk{C6K^HtRlv2~8uL;xnWSjb(kE8n(n^jNn<LpEt5@CvvNBsiqJ#ZY#tdYjAZucyVAKX?mUy zhx8i!PKC@^E%WRsJa*YhWZsAIcT@ORP8c0hOpJN7vD%CnF9fU*E9!EthqS7jm z^2W&0K#jY0$gAKBe%J=9Bd=&F)PtIWI7Yphr@Ob~nkTUvR7*|1!@qK&v9YdP#*z|F zMwoO4(?y!ji@eKqGpT89+jBM7$z^eG^K_M|SOg1-M9)sK=$g&u`u$}6y5i|7jJzg+ zxq>!u`^Cdjyx)qXMGGI=o&M=cTm09^hQ4(l8{)tI;fv<}-;0CZi^uryK1%)m56Lps zo%Fm*%99A*&S!yFE=!{_e|xL#1rG|Z5qa(4rN;>1J5Zh=*U&fZOyCr`9DK8wRnBS_ z2BCg*=sHnl(y6s3DbexxebKMm-1%v5w5s`f7X$Nj_kyAt_e^06#NC>_pCJ&SFqCK-hqGEq;s<>(E@NnSZ*T;0VI}oCoCZU&Lzgu z&Naim$lYgwCqfpf>NGB+)~5@&6A@pcwD)EfT5dw!h9t|?_{SQa*xNf}A`>XC^qA!r z(U9dDC|_|UsMryv3XV_z3TGdWYdGDtBk*e$#(oN_yhymYS)j;oHb1M~0b0USe9EOeqZ;U%NtlZGCwA$NtvsznEwf0sfkJr3( zdADTiUN-enOKYgQso!b&nVudx-fNb&_`f`4y{oIh8{+@{Fzhey{~kTY|MyWgoaE1U z`AlekTI}>~i2Ubm)Fd|Us($vraPC*zg;1DIP#%jkBND;?uh+ex*YAWr1jn^2p26Sp z0T#=Z;CHIajTpD(R4rsU>MJ2HDIW!wFWp8?Z-AQg7B?U2P4HSHH;-x&)@iL<5uG^Z zv@eG$4&7qq(_)26iPW9_V6f#wy72is{@U*4osP zJW6+D6EkXiXRQ_=7A~HeCe{18tPTK~Gu%M=0#W7lSks419a$pH9=py5;4aH9*#70z zm1?vu;;E8Rsxlz)CGw;hA{8ofx?*CrfV!B_fR-9pgIwTEJI@~420fOCD{cP2HT1nj zADjID;gbJ9>K{D%|9dHo-~Vxr?zmhGw79y3wLtOfAoj;G+7?%oVfjlPbDZ`>tg*%H zRzeD>c1NFXc>>-}*;>-kSc5&w3cQk_`sycw@7CloF}iR+Q35fe#{cc@N=${u3z8%f zI#9mm3Z;3mm)tKjO%ZnUOlgTEy^yFf!4koYq`PKDEcF+V{(07*z*~%95KH1l~-+2#xW{&!NdrlJ0Y^m z#Hd*C+N@1iAJ}>)xmsg`(B`Ff8+qhX2n_(;T*QW^|%O# zQVMyIkr6^aJcQT#VF#FvrSbEbUoY&Be`LL@| zX_x{0Fjvc`R?L|&S~{kD)S!0 zd>**J4{gJ5Q`-E0sr~n~{tsUqyjWiUKc4^HOKJ80MPkB3o%^}pRcdiZRnl*5_qa^}hPwIZX{MYDzkz#UtGq6ej5B3k5@qe%1 zf7Ji`C|hR%tuqt_c)Pv$!GqeLGaZjPKtEa9^xp(Es|NCJ- zd|dzEOKDZ>Gm*6DvcHYRGyFAooGe0#X1eJzTi_HYC?C{d zRr((o=F$-t67RT=P5OVh-;Dnc`r)Jhzn8KDXGCk1-0nR%@x#>^ISg{j60@4lNPI~~ zsOCQgtn$pp-=N0G7>t-0xU@UUN6$ebBbrXoo_y546P|cGz;Wc3^iML0Lwb#gJMQ|A zrvZHAYzl(gmWCwAP}-lu47}j&`Gw8r@phodNdIzt4hfaY3r19T?O#W}7YzO_yY_GS zVLa-ZKjo{M@NR`@K;p|hvzwL5dlsmx%zG9L$ffrz&}rs9`(JMdz7R=8uHfYDJLLtL v6yGq`UO*EhT?Z${H!ql|SR~ke3_%{tV|grpg7SX>009602d`vY0Av6FOl8-d literal 0 HcmV?d00001 diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_input_template.json b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_input_template.json new file mode 100644 index 00000000000..d35d656af9c --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_input_template.json @@ -0,0 +1,18 @@ +{ + "publisher_name": "nginx-publisher", + "publisher_resource_group_name": "{{publisher_resource_group_name}}", + "nf_name": "nginx", + "version": "1.0.0", + "acr_artifact_store_name": "nginx-nsd-acr", + "location": "uksouth", + "source_registry_id": "/subscriptions/602a6b57-fb02-4c3d-bc44-5f8852be10ee/resourceGroups/CLI_testing_resources/providers/Microsoft.ContainerRegistry/registries/CliTestRegistry", + "source_registry_namespace": "", + "helm_packages": [ + { + "name": "nginxdemo", + "path_to_chart": "{{path_to_chart}}", + "path_to_mappings": "", + "depends_on": [] + } + ] +} diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_nsd_input_template.json b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_nsd_input_template.json new file mode 100644 index 00000000000..df367f1f5f9 --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/cnf_nsd_input_template.json @@ -0,0 +1,14 @@ +{ + "location": "uksouth", + "publisher_name": "nginx-publisher", + "publisher_resource_group_name": "{{publisher_resource_group_name}}", + "acr_artifact_store_name": "nginx-nsd-acr", + "network_function_definition_group_name": "nginx-nfdg", + "network_function_definition_version_name": "1.0.0", + "network_function_definition_offering_location": "uksouth", + "network_function_type": "cnf", + "nsdg_name": "nginx", + "nsd_version": "1.0.0", + "nsdv_description": "Deploys a basic NGINX CNF", + "multiple_instances": false +} \ No newline at end of file diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_input_template.json b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_input_template.json new file mode 100644 index 00000000000..ae8c450710f --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_input_template.json @@ -0,0 +1,18 @@ +{ + "publisher_name": "ubuntuPublisher", + "publisher_resource_group_name": "{{publisher_resource_group_name}}", + "acr_artifact_store_name": "ubuntu-acr", + "location": "uksouth", + "nf_name": "ubuntu-vm", + "version": "1.0.0", + "blob_artifact_store_name": "ubuntu-blob-store", + "image_name_parameter": "imageName", + "arm_template": { + "file_path": "../vnf_mocks/ubuntu_template.json", + "version": "1.0.0" + }, + "vhd": { + "blob_sas_url": "https://ubuntuimage.blob.core.windows.net/images/livecd.ubuntu-cpc.azure.vhd?sp=r&st=2023-07-25T13:50:40Z&se=2024-07-25T21:50:40Z&spr=https&sv=2022-11-02&sr=b&sig=NlqXIleMtL9wIACerJdtxZ5kXdF0Gbe4uoYRmcDsFq8%3D", + "version": "1-0-0" + } +} \ No newline at end of file diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_nsd_input_template.json b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_nsd_input_template.json new file mode 100644 index 00000000000..fc7776ed9d9 --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/mock_input_templates/vnf_nsd_input_template.json @@ -0,0 +1,14 @@ +{ + "publisher_name": "ubuntuPublisher", + "publisher_resource_group_name": "{{publisher_resource_group_name}}", + "acr_artifact_store_name": "ubuntu-acr", + "location": "uksouth", + "network_function_definition_group_name": "ubuntu-vm-nfdg", + "network_function_definition_version_name": "1.0.0", + "network_function_definition_offering_location": "uksouth", + "network_function_type": "vnf", + "nsdg_name": "ubuntu", + "nsd_version": "1.0.0", + "nsdv_description": "Plain ubuntu VM", + "multiple_instances": false +} \ No newline at end of file diff --git a/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/vnf_mocks/ubuntu_template.json b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/vnf_mocks/ubuntu_template.json new file mode 100644 index 00000000000..fe7b586ab23 --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/scenario_test_mocks/vnf_mocks/ubuntu_template.json @@ -0,0 +1,118 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.8.9.13224", + "templateHash": "14979664264804385741" + } + }, + "parameters": { + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + "subnetName": { + "type": "string" + }, + "ubuntuVmName": { + "type": "string", + "defaultValue": "ubuntu-vm" + }, + "virtualNetworkId": { + "type": "string" + }, + "sshPublicKeyAdmin": { + "type": "string" + }, + "imageName": { + "type": "string" + } + }, + "variables": { + "imageResourceGroup": "[resourceGroup().name]", + "subscriptionId": "[subscription().subscriptionId]", + "vmSizeSku": "Standard_D2s_v3" + }, + "resources": [ + { + "type": "Microsoft.Network/networkInterfaces", + "apiVersion": "2021-05-01", + "name": "[format('{0}_nic', parameters('ubuntuVmName'))]", + "location": "[parameters('location')]", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "subnet": { + "id": "[format('{0}/subnets/{1}', parameters('virtualNetworkId'), parameters('subnetName'))]" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ] + } + }, + { + "type": "Microsoft.Compute/virtualMachines", + "apiVersion": "2021-07-01", + "name": "[parameters('ubuntuVmName')]", + "location": "[parameters('location')]", + "properties": { + "hardwareProfile": { + "vmSize": "[variables('vmSizeSku')]" + }, + "storageProfile": { + "imageReference": { + "id": "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('subscriptionId'), variables('imageResourceGroup')), 'Microsoft.Compute/images', parameters('imageName'))]" + }, + "osDisk": { + "osType": "Linux", + "name": "[format('{0}_disk', parameters('ubuntuVmName'))]", + "createOption": "FromImage", + "caching": "ReadWrite", + "writeAcceleratorEnabled": false, + "managedDisk": "[json('{\"storageAccountType\": \"Premium_LRS\"}')]", + "deleteOption": "Delete", + "diskSizeGB": 30 + } + }, + "osProfile": { + "computerName": "[parameters('ubuntuVmName')]", + "adminUsername": "azureuser", + "linuxConfiguration": { + "disablePasswordAuthentication": true, + "ssh": { + "publicKeys": [ + { + "path": "/home/azureuser/.ssh/authorized_keys", + "keyData": "[parameters('sshPublicKeyAdmin')]" + } + ] + }, + "provisionVMAgent": true, + "patchSettings": { + "patchMode": "ImageDefault", + "assessmentMode": "ImageDefault" + } + }, + "secrets": [], + "allowExtensionOperations": true + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "[resourceId('Microsoft.Network/networkInterfaces', format('{0}_nic', parameters('ubuntuVmName')))]" + } + ] + } + }, + "dependsOn": [ + "[resourceId('Microsoft.Network/networkInterfaces', format('{0}_nic', parameters('ubuntuVmName')))]" + ] + } + ] +} \ No newline at end of file diff --git a/src/aosm/azext_aosm/tests/latest/test_cnf_publish_and_delete.py b/src/aosm/azext_aosm/tests/latest/test_cnf_publish_and_delete.py new file mode 100644 index 00000000000..3b61395fa6c --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/test_cnf_publish_and_delete.py @@ -0,0 +1,86 @@ +# Currently commented out because of the timeout bug in the testing framework. + +# from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +# from knack.log import get_logger +# import os +# from jinja2 import Template +# from typing import Dict + + +# logger = get_logger(__name__) + +# NFD_INPUT_TEMPLATE_NAME = "cnf_input_template.json" +# NFD_INPUT_FILE_NAME = "cnf_input.json" +# NSD_INPUT_TEMPLATE_NAME = "nsd_cnf_input_template.json" +# NSD_INPUT_FILE_NAME = "input_nsd_cnf.json" +# CHART_NAME = "nginxdemo-0.1.0.tgz" + + +# def get_path_to_chart(): +# code_dir = os.path.dirname(__file__) +# templates_dir = os.path.join(code_dir, "scenario_test_mocks", "cnf_mocks") +# chart_path = os.path.join(templates_dir, CHART_NAME) +# return chart_path + + +# def update_input_file(input_template_name, output_file_name, params: Dict[str, str]): +# code_dir = os.path.dirname(__file__) +# templates_dir = os.path.join( +# code_dir, "scenario_test_mocks", "mock_input_templates" +# ) +# input_template_path = os.path.join(templates_dir, input_template_name) + +# with open(input_template_path, "r", encoding="utf-8") as file: +# contents = file.read() + +# jinja_template = Template(contents) + +# rendered_template = jinja_template.render(**params) + +# output_path = os.path.join(templates_dir, output_file_name) + +# with open(output_path, "w", encoding="utf-8") as file: +# file.write(rendered_template) + +# return output_path + + +# class CnfNsdTest(ScenarioTest): +# @ResourceGroupPreparer() +# def test_cnf_nsd_publish_and_delete(self, resource_group): +# # We are overriding a resource group name here because we need to have some +# # resources predeployed in order to get around the timeout bug in the testing framework. +# resource_group = "patrykkulik-test" + +# chart_path = get_path_to_chart() + +# nfd_input_file_path = update_input_file( +# NFD_INPUT_TEMPLATE_NAME, +# NFD_INPUT_FILE_NAME, +# params={ +# "publisher_resource_group_name": resource_group, +# "path_to_chart": chart_path, +# }, +# ) + +# self.cmd( +# f'az aosm nfd build -f "{nfd_input_file_path}" --definition-type cnf --force' +# ) + +# self.cmd( +# f'az aosm nfd publish -f "{nfd_input_file_path}" --definition-type cnf --debug' +# ) + +# nsd_input_file_path = update_input_file( +# NSD_INPUT_TEMPLATE_NAME, +# NSD_INPUT_FILE_NAME, +# params={"publisher_resource_group_name": resource_group}, +# ) + +# self.cmd(f'az aosm nsd build -f "{nsd_input_file_path}" --debug --force') +# self.cmd(f'az aosm nsd publish -f "{nsd_input_file_path}" --debug') + +# self.cmd( +# f'az aosm nfd delete --definition-type cnf -f "{nfd_input_file_path}" --debug --force' +# ) +# self.cmd(f'az aosm nsd delete -f "{nsd_input_file_path}" --debug --force') diff --git a/src/aosm/azext_aosm/tests/latest/test_vnf_publish_and_delete.py b/src/aosm/azext_aosm/tests/latest/test_vnf_publish_and_delete.py new file mode 100644 index 00000000000..47c2d4d32c1 --- /dev/null +++ b/src/aosm/azext_aosm/tests/latest/test_vnf_publish_and_delete.py @@ -0,0 +1,72 @@ +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from knack.log import get_logger +import os +from jinja2 import Template +from typing import Any, Dict + + +logger = get_logger(__name__) + +NFD_INPUT_TEMPLATE_NAME = "vnf_input_template.json" +NFD_INPUT_FILE_NAME = "vnf_input.json" +NSD_INPUT_TEMPLATE_NAME = "vnf_nsd_input_template.json" +NSD_INPUT_FILE_NAME = "nsd_input.json" +ARM_TEMPLATE_RELATIVE_PATH = "scenario_test_mocks/vnf_mocks/ubuntu_template.json" + + +def update_resource_group_in_input_file( + input_template_name: str, output_file_name: str, resource_group: str +) -> str: + code_dir = os.path.dirname(__file__) + templates_dir = os.path.join( + code_dir, "scenario_test_mocks", "mock_input_templates" + ) + input_template_path = os.path.join(templates_dir, input_template_name) + + with open(input_template_path, "r", encoding="utf-8") as file: + contents = file.read() + + jinja_template = Template(contents) + + rendered_template = jinja_template.render( + publisher_resource_group_name=resource_group + ) + + output_path = os.path.join(templates_dir, output_file_name) + + with open(output_path, "w", encoding="utf-8") as file: + file.write(rendered_template) + + return output_path + + +class VnfNsdTest(ScenarioTest): + @ResourceGroupPreparer() + def test_vnf_nsd_publish_and_delete(self, resource_group): + # We are overriding a resource group name here because we need to have some + # resources predeployed in order to get around the timeout bug in the testing framework. + resource_group = "patrykkulik-test" + + nfd_input_file_path = update_resource_group_in_input_file( + NFD_INPUT_TEMPLATE_NAME, NFD_INPUT_FILE_NAME, resource_group + ) + + self.cmd( + f'az aosm nfd build -f "{nfd_input_file_path}" --definition-type vnf --force' + ) + + self.cmd( + f'az aosm nfd publish -f "{nfd_input_file_path}" --definition-type vnf --debug' + ) + + nsd_input_file_path = update_resource_group_in_input_file( + NSD_INPUT_TEMPLATE_NAME, NSD_INPUT_FILE_NAME, resource_group + ) + + self.cmd(f'az aosm nsd build -f "{nsd_input_file_path}" --debug --force') + self.cmd(f'az aosm nsd publish -f "{nsd_input_file_path}" --debug') + + self.cmd( + f'az aosm nfd delete --definition-type vnf -f "{nfd_input_file_path}" --debug --force' + ) + self.cmd(f'az aosm nsd delete -f "{nsd_input_file_path}" --debug --force')