diff --git a/sdk/batch/azure-mgmt-batch/CHANGELOG.md b/sdk/batch/azure-mgmt-batch/CHANGELOG.md index ffe3910bacbd..89466ed5f1c6 100644 --- a/sdk/batch/azure-mgmt-batch/CHANGELOG.md +++ b/sdk/batch/azure-mgmt-batch/CHANGELOG.md @@ -1,10 +1,33 @@ # Release History +## 9.0.0 (2020-05-29) +### REST API version +- This version targets REST API version 2020-05-01. + +### Features +- Added ability to access the Batch DataPlane API without needing a public DNS entry for the account via the new `public_network_access` property on `BatchAccount`. +- Added new `PrivateLinkResource` and `PrivateEndpointConnection` resource types. These are both only used when the `public_network_access` property on `BatchAccount` is set to `Disabled`. + - When `public_network_access` is set to `Disabled` a new `PrivateLinkResource` is visible in that account, which can be used to connect to the account using an ARM Private Endpoint in your VNET. +- Added ability to encrypt `ComputeNode` disk drives using the new `disk_encryption_configuration` property of `VirtualMachineConfiguration`. +- **[Breaking]** The `id` property of `ImageReference` can now only refer to a Shared Image Gallery image. +- **[Breaking]** Pools can now be provisioned without a public IP using the new `public_ip_configuration` property of `NetworkConfiguration`. + - The `public_ips` property of `NetworkConfiguration` has moved in to `PublicIPAddressConfiguration` as well. This property can only be specified if `IPAddressProvisioningType` is `UserManaged`. +- Adds a new property `identity` of type `BatchAccountIdentity` to `BatchAccount`. This can be used to configure how customer data is encrypted inside the Batch account. + - This new property is configurable at the account level on create and update through a new `identity` property on `BatchAccountCreateParameters` and `BatchAccountUpdateParameters` + +### Fixes +- [Breaking] Move tags from being an argument on create and update pool parameters to being a part of `BatchAccountCreateParameters` and `BatchAccountUpdateParameters` to properly reflect the REST API + +## 8.0.1 (2020-05-26) [Deprecated] +### Notices +- This version targeted an invalid REST API. This version does not honor the associated REST API contract. -## 8.0.1 (2020-05-26) ### Bugfixes -- Fix issues in PrivateEndpointConnection get and update methods due to mistakes in the Swagger specification causing validation to fail. +- Fix issues in PrivateEndpointConnection get and update methods due to mistakes in the Swagger specification causing validation to fail. It is advised to use version 9+ to make use of the features added in this version. + +## 8.0.0 (2020-04-10) [Deprecated] +### Notices +- This version targeted an invalid REST API. Currently the PrivateEndpoint get() and update() functions do not function correctly. It is advised to use version 9+ to make use of the features added in this version. -## 8.0.0 (2020-04-10) ### REST API version - This version targets REST API version 2020-03-01. diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py index 3ae9cb636e1d..8fbaae1e6e1f 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py @@ -66,7 +66,7 @@ def __init__( super(BatchManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-03-01' + self.api_version = '2020-05-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py index df4831144de2..512562cf9b9d 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py @@ -24,6 +24,7 @@ from ._models_py3 import AzureFileShareConfiguration from ._models_py3 import BatchAccount from ._models_py3 import BatchAccountCreateParameters + from ._models_py3 import BatchAccountIdentity from ._models_py3 import BatchAccountKeys from ._models_py3 import BatchAccountRegenerateKeyParameters from ._models_py3 import BatchAccountUpdateParameters @@ -94,6 +95,7 @@ from ._models import AzureFileShareConfiguration from ._models import BatchAccount from ._models import BatchAccountCreateParameters + from ._models import BatchAccountIdentity from ._models import BatchAccountKeys from ._models import BatchAccountRegenerateKeyParameters from ._models import BatchAccountUpdateParameters @@ -161,6 +163,7 @@ KeySource, PoolAllocationMode, PublicNetworkAccessType, + ResourceIdentityType, ProvisioningState, PrivateEndpointConnectionProvisioningState, PrivateLinkServiceConnectionStatus, @@ -205,6 +208,7 @@ 'AzureFileShareConfiguration', 'BatchAccount', 'BatchAccountCreateParameters', + 'BatchAccountIdentity', 'BatchAccountKeys', 'BatchAccountRegenerateKeyParameters', 'BatchAccountUpdateParameters', @@ -271,6 +275,7 @@ 'KeySource', 'PoolAllocationMode', 'PublicNetworkAccessType', + 'ResourceIdentityType', 'ProvisioningState', 'PrivateEndpointConnectionProvisioningState', 'PrivateLinkServiceConnectionStatus', diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py index c5922eecd062..ec716516ab2b 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py @@ -15,7 +15,7 @@ class KeySource(str, Enum): microsoft_batch = "Microsoft.Batch" #: Batch creates and manages the encryption keys used to protect the account data. - microsoft_key_vault = "Microsoft.KeyVault" #: The encryption keys used to protect the account data are stored in an external key vault. + microsoft_key_vault = "Microsoft.KeyVault" #: The encryption keys used to protect the account data are stored in an external key vault. If this is set then the Batch Account identity must be set to `SystemAssigned` and a valid Key Identifier must also be supplied under the keyVaultProperties. class PoolAllocationMode(str, Enum): @@ -30,6 +30,12 @@ class PublicNetworkAccessType(str, Enum): disabled = "Disabled" #: Disables public connectivity and enables private connectivity to Azure Batch Service through private endpoint resource. +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" #: Batch account has a system assigned identity with it. + none = "None" #: Batch account has no identity associated with it. Setting `None` in update account will remove existing identities. + + class ProvisioningState(str, Enum): invalid = "Invalid" #: The account is in an invalid state. diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py index ff8a76a72cdd..e888026baca6 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py @@ -570,6 +570,9 @@ class BatchAccount(Resource): associated with the Batch account. :vartype auto_storage: ~azure.mgmt.batch.models.AutoStorageProperties :ivar encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :vartype encryption: ~azure.mgmt.batch.models.EncryptionProperties :ivar dedicated_core_quota: The dedicated core quota for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, @@ -601,6 +604,8 @@ class BatchAccount(Resource): :ivar active_job_and_job_schedule_quota: The active job and job schedule quota for the Batch account. :vartype active_job_and_job_schedule_quota: int + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _validation = { @@ -645,6 +650,7 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'key': 'properties.dedicatedCoreQuotaPerVMFamilyEnforced', 'type': 'bool'}, 'pool_quota': {'key': 'properties.poolQuota', 'type': 'int'}, 'active_job_and_job_schedule_quota': {'key': 'properties.activeJobAndJobScheduleQuota', 'type': 'int'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } def __init__(self, **kwargs): @@ -663,6 +669,7 @@ def __init__(self, **kwargs): self.dedicated_core_quota_per_vm_family_enforced = None self.pool_quota = None self.active_job_and_job_schedule_quota = None + self.identity = kwargs.get('identity', None) class BatchAccountCreateParameters(Model): @@ -694,7 +701,12 @@ class BatchAccountCreateParameters(Model): :type public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType :param encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _validation = { @@ -709,6 +721,7 @@ class BatchAccountCreateParameters(Model): 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'PublicNetworkAccessType'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } def __init__(self, **kwargs): @@ -720,6 +733,47 @@ def __init__(self, **kwargs): self.key_vault_reference = kwargs.get('key_vault_reference', None) self.public_network_access = kwargs.get('public_network_access', "Enabled") self.encryption = kwargs.get('encryption', None) + self.identity = kwargs.get('identity', None) + + +class BatchAccountIdentity(Model): + """The identity of the Batch account, if configured. This is only used when + the user specifies 'Microsoft.KeyVault' as their Batch account encryption + configuration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of the Batch account. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the Batch account. This + property will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the Batch account. + Possible values include: 'SystemAssigned', 'None' + :type type: str or ~azure.mgmt.batch.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(BatchAccountIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) class BatchAccountKeys(Model): @@ -786,13 +840,19 @@ class BatchAccountUpdateParameters(Model): :param auto_storage: The properties related to the auto-storage account. :type auto_storage: ~azure.mgmt.batch.models.AutoStorageBaseProperties :param encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } def __init__(self, **kwargs): @@ -800,6 +860,7 @@ def __init__(self, **kwargs): self.tags = kwargs.get('tags', None) self.auto_storage = kwargs.get('auto_storage', None) self.encryption = kwargs.get('encryption', None) + self.identity = kwargs.get('identity', None) class BatchLocationQuota(Model): @@ -1466,7 +1527,9 @@ def __init__(self, **kwargs): class EncryptionProperties(Model): - """EncryptionProperties. + """Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :param key_source: Type of the key source. Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault' @@ -1666,10 +1729,16 @@ def __init__(self, **kwargs): class KeyVaultProperties(Model): - """KeyVaultProperties. + """KeyVault configuration when using an encryption KeySource of + Microsoft.KeyVault. :param key_identifier: Full path to the versioned secret. Example - https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053 + https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. + To be usable the following prerequisites must be met: + The Batch Account has a System Assigned identity + The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap + permissions + The KeyVault has soft-delete and purge protection enabled :type key_identifier: str """ diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py index 0fdd6225e241..8d5f2514262a 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py @@ -570,6 +570,9 @@ class BatchAccount(Resource): associated with the Batch account. :vartype auto_storage: ~azure.mgmt.batch.models.AutoStorageProperties :ivar encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :vartype encryption: ~azure.mgmt.batch.models.EncryptionProperties :ivar dedicated_core_quota: The dedicated core quota for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, @@ -601,6 +604,8 @@ class BatchAccount(Resource): :ivar active_job_and_job_schedule_quota: The active job and job schedule quota for the Batch account. :vartype active_job_and_job_schedule_quota: int + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _validation = { @@ -645,9 +650,10 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'key': 'properties.dedicatedCoreQuotaPerVMFamilyEnforced', 'type': 'bool'}, 'pool_quota': {'key': 'properties.poolQuota', 'type': 'int'}, 'active_job_and_job_schedule_quota': {'key': 'properties.activeJobAndJobScheduleQuota', 'type': 'int'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, identity=None, **kwargs) -> None: super(BatchAccount, self).__init__(**kwargs) self.account_endpoint = None self.provisioning_state = None @@ -663,6 +669,7 @@ def __init__(self, **kwargs) -> None: self.dedicated_core_quota_per_vm_family_enforced = None self.pool_quota = None self.active_job_and_job_schedule_quota = None + self.identity = identity class BatchAccountCreateParameters(Model): @@ -694,7 +701,12 @@ class BatchAccountCreateParameters(Model): :type public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType :param encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _validation = { @@ -709,9 +721,10 @@ class BatchAccountCreateParameters(Model): 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'PublicNetworkAccessType'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } - def __init__(self, *, location: str, tags=None, auto_storage=None, pool_allocation_mode=None, key_vault_reference=None, public_network_access="Enabled", encryption=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, auto_storage=None, pool_allocation_mode=None, key_vault_reference=None, public_network_access="Enabled", encryption=None, identity=None, **kwargs) -> None: super(BatchAccountCreateParameters, self).__init__(**kwargs) self.location = location self.tags = tags @@ -720,6 +733,47 @@ def __init__(self, *, location: str, tags=None, auto_storage=None, pool_allocati self.key_vault_reference = key_vault_reference self.public_network_access = public_network_access self.encryption = encryption + self.identity = identity + + +class BatchAccountIdentity(Model): + """The identity of the Batch account, if configured. This is only used when + the user specifies 'Microsoft.KeyVault' as their Batch account encryption + configuration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of the Batch account. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the Batch account. This + property will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the Batch account. + Possible values include: 'SystemAssigned', 'None' + :type type: str or ~azure.mgmt.batch.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type, **kwargs) -> None: + super(BatchAccountIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type class BatchAccountKeys(Model): @@ -786,20 +840,27 @@ class BatchAccountUpdateParameters(Model): :param auto_storage: The properties related to the auto-storage account. :type auto_storage: ~azure.mgmt.batch.models.AutoStorageBaseProperties :param encryption: The encryption configuration for the Batch account. + Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param identity: The identity of the Batch account. + :type identity: ~azure.mgmt.batch.models.BatchAccountIdentity """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, } - def __init__(self, *, tags=None, auto_storage=None, encryption=None, **kwargs) -> None: + def __init__(self, *, tags=None, auto_storage=None, encryption=None, identity=None, **kwargs) -> None: super(BatchAccountUpdateParameters, self).__init__(**kwargs) self.tags = tags self.auto_storage = auto_storage self.encryption = encryption + self.identity = identity class BatchLocationQuota(Model): @@ -1466,7 +1527,9 @@ def __init__(self, *, targets=None, **kwargs) -> None: class EncryptionProperties(Model): - """EncryptionProperties. + """Configures how customer data is encrypted inside the Batch account. By + default, accounts are encrypted using a Microsoft managed key. For + additional control, a customer-managed key can be used instead. :param key_source: Type of the key source. Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault' @@ -1666,10 +1729,16 @@ def __init__(self, *, name: str, protocol, backend_port: int, frontend_port_rang class KeyVaultProperties(Model): - """KeyVaultProperties. + """KeyVault configuration when using an encryption KeySource of + Microsoft.KeyVault. :param key_identifier: Full path to the versioned secret. Example - https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053 + https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. + To be usable the following prerequisites must be met: + The Batch Account has a System Assigned identity + The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap + permissions + The KeyVault has soft-delete and purge protection enabled :type key_identifier: str """ diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py index 5262642d1ec8..47a800a373ce 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py @@ -25,7 +25,7 @@ class ApplicationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py index 8ca98e94ef87..f7927fe1d777 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py @@ -25,7 +25,7 @@ class ApplicationPackageOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py index 0fb12c2fc880..c34dc76f6a7e 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py @@ -27,7 +27,7 @@ class BatchAccountOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config @@ -162,7 +162,7 @@ def get_long_running_output(response): create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} def update( - self, resource_group_name, account_name, tags=None, auto_storage=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config): """Updates the properties of an existing Batch account. :param resource_group_name: The name of the resource group that @@ -170,11 +170,9 @@ def update( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param tags: The user-specified tags associated with the account. - :type tags: dict[str, str] - :param auto_storage: The properties related to the auto-storage - account. - :type auto_storage: ~azure.mgmt.batch.models.AutoStorageBaseProperties + :param parameters: Additional parameters for account update. + :type parameters: + ~azure.mgmt.batch.models.BatchAccountUpdateParameters :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -185,8 +183,6 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - parameters = models.BatchAccountUpdateParameters(tags=tags, auto_storage=auto_storage) - # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py index bc4f7f255a67..3e879483c8e6 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py @@ -27,7 +27,7 @@ class CertificateOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py index 34583d2e00ea..464c6e32a691 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py @@ -25,7 +25,7 @@ class LocationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py index 4e1e91a8137b..6b412561c695 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py @@ -25,7 +25,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py index c71a00c49bf3..d5aca484ae7b 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py @@ -27,7 +27,7 @@ class PoolOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py index 3691ba99ac03..fbd041db9afa 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py @@ -27,7 +27,7 @@ class PrivateEndpointConnectionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py index c1022230cd6d..edeeebb94a11 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py @@ -25,7 +25,7 @@ class PrivateLinkResourceOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2020-03-01". + :ivar api_version: The API version to use for the request. Constant value: "2020-05-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/version.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/version.py index 54f477b1e2e9..3adccb394638 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/version.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "8.0.1" +VERSION = "9.0.0" diff --git a/sdk/batch/azure-mgmt-batch/dev_requirements.txt b/sdk/batch/azure-mgmt-batch/dev_requirements.txt index cdf8192e82c6..578ecaf560cd 100644 --- a/sdk/batch/azure-mgmt-batch/dev_requirements.txt +++ b/sdk/batch/azure-mgmt-batch/dev_requirements.txt @@ -1,2 +1,3 @@ -e ../../../tools/azure-sdk-tools -e ../../keyvault/azure-mgmt-keyvault +-e ../../network/azure-mgmt-network diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml index 23163b00a363..2b3b713bbc2d 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-05-01 response: body: string: '' @@ -28,11 +28,11 @@ interactions: content-length: - '0' date: - - Tue, 14 Apr 2020 15:36:58 GMT + - Fri, 29 May 2020 17:21:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/a4f17142-743a-4052-ba45-8b09bc57ba33?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e725ad4f-6cf4-48de-b64f-188476982eb9?api-version=2020-05-01 pragma: - no-cache server: @@ -56,28 +56,28 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/a4f17142-743a-4052-ba45-8b09bc57ba33?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e725ad4f-6cf4-48de-b64f-188476982eb9?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":0,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardDv3Family","coreQuota":0},{"name":"standardEv3Family","coreQuota":0},{"name":"standardDSv2Family","coreQuota":0},{"name":"standardDSv3Family","coreQuota":0},{"name":"standardESv3Family","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":0,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2054' + - '2277' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:14 GMT + - Fri, 29 May 2020 17:21:59 GMT etag: - - '"0x8D7E089B54CE314"' + - '"0x8D803F4CB835E50"' expires: - '-1' last-modified: - - Tue, 14 Apr 2020 15:37:15 GMT + - Fri, 29 May 2020 17:21:59 GMT pragma: - no-cache server: @@ -103,30 +103,30 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":0,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardDv3Family","coreQuota":0},{"name":"standardEv3Family","coreQuota":0},{"name":"standardDSv2Family","coreQuota":0},{"name":"standardDSv3Family","coreQuota":0},{"name":"standardESv3Family","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":0,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2054' + - '2277' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:14 GMT + - Fri, 29 May 2020 17:21:59 GMT etag: - - '"0x8D7E089ABE20AF0"' + - '"0x8D803F4C43800DC"' expires: - '-1' last-modified: - - Tue, 14 Apr 2020 15:36:59 GMT + - Fri, 29 May 2020 17:21:47 GMT pragma: - no-cache server: @@ -152,24 +152,24 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts?api-version=2020-05-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":0,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardDv3Family","coreQuota":0},{"name":"standardEv3Family","coreQuota":0},{"name":"standardDSv2Family","coreQuota":0},{"name":"standardDSv3Family","coreQuota":0},{"name":"standardESv3Family","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":0,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}]}' headers: cache-control: - no-cache content-length: - - '2066' + - '2289' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:14 GMT + - Fri, 29 May 2020 17:21:59 GMT expires: - '-1' pragma: @@ -199,15 +199,15 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/listKeys?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/listKeys?api-version=2020-05-01 response: body: - string: '{"accountName":"batch3e1b0fe5","primary":"+TotCbnKwezopOqQLBkSBt8+6luiAzUmr/2TB4I29h9txnHCFL027szjj7Eo10/kRYD/uH46oZoTVz7EgCDotw==","secondary":"85KlXkMDdlZv3co1wiG1yjwYsj2YbIsObRkaQuGIVbb+s8wxQPwX+evoJ55NPEHjjMefX/I2w8Zev/2h5euc4g=="}' + string: '{"accountName":"batch3e1b0fe5","primary":"5oGT4STJ/ZMDakHJT8dDugSqtJ++6rDV9rlAk3OqXTOVDG/uoiyzJ9xSEFIOH0p8X9MHMQKSvubn1BF1MjC/Kg==","secondary":"D5J5LV2W08Lnh9cxltCXg1qjzxYpk2RFoXQs4jP/BkyFrSvNTlf7aAPNjq+Xsc//CpP2k9cZyge0GbF23d5KSQ=="}' headers: cache-control: - no-cache @@ -216,7 +216,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:14 GMT + - Fri, 29 May 2020 17:22:00 GMT expires: - '-1' pragma: @@ -250,15 +250,15 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/regenerateKeys?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/regenerateKeys?api-version=2020-05-01 response: body: - string: '{"accountName":"batch3e1b0fe5","primary":"+TotCbnKwezopOqQLBkSBt8+6luiAzUmr/2TB4I29h9txnHCFL027szjj7Eo10/kRYD/uH46oZoTVz7EgCDotw==","secondary":"muz4FMDwClx0yCr9c+3sp4w26epWlr3eylUNpceTZYk32zuLHvZZ277LaxWPh908mn8e+lrKmvKqtFcLEFga/A=="}' + string: '{"accountName":"batch3e1b0fe5","primary":"5oGT4STJ/ZMDakHJT8dDugSqtJ++6rDV9rlAk3OqXTOVDG/uoiyzJ9xSEFIOH0p8X9MHMQKSvubn1BF1MjC/Kg==","secondary":"OU+dyj7ae9N6aJzDWJDkOVTM/8RN9KB/fc08TWCkjUKmIr6x49v9Mvq/W/Q4TnEqWrRzezMgONPPbU2VWqtxkQ=="}' headers: cache-control: - no-cache @@ -267,7 +267,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:14 GMT + - Fri, 29 May 2020 17:22:00 GMT expires: - '-1' pragma: @@ -301,30 +301,30 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":0,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardDv3Family","coreQuota":0},{"name":"standardEv3Family","coreQuota":0},{"name":"standardDSv2Family","coreQuota":0},{"name":"standardDSv3Family","coreQuota":0},{"name":"standardESv3Family","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":0,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"tags":{"Name":"tagName","Value":"tagValue"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"tags":{"Name":"tagName","Value":"tagValue"},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2099' + - '2322' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Apr 2020 15:37:16 GMT + - Fri, 29 May 2020 17:22:01 GMT etag: - - '"0x8D7E089B62AB538"' + - '"0x8D803F4CCA912C1"' expires: - '-1' last-modified: - - Tue, 14 Apr 2020 15:37:16 GMT + - Fri, 29 May 2020 17:22:01 GMT pragma: - no-cache server: @@ -354,12 +354,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2020-05-01 response: body: string: '' @@ -369,11 +369,11 @@ interactions: content-length: - '0' date: - - Tue, 14 Apr 2020 15:37:16 GMT + - Fri, 29 May 2020 17:22:02 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-1495797e-f9af-436d-ad44-ec39195f19a5?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-578db4e6-933d-45c3-b66e-2bac82d319cc?api-version=2020-05-01 pragma: - no-cache server: @@ -397,10 +397,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/8.0.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-1495797e-f9af-436d-ad44-ec39195f19a5?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-578db4e6-933d-45c3-b66e-2bac82d319cc?api-version=2020-05-01 response: body: string: '' @@ -410,7 +410,7 @@ interactions: content-length: - '0' date: - - Tue, 14 Apr 2020 15:37:32 GMT + - Fri, 29 May 2020 17:22:17 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml new file mode 100644 index 000000000000..bf6608792de3 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml @@ -0,0 +1,793 @@ +interactions: +- request: + body: '{"location": "westcentralus", "properties": {"publicNetworkAccess": "Disabled"}, + "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '120' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a?api-version=2020-05-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 29 May 2020 03:08:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/153cbbf5-472d-46c4-8772-0728a64cef0f?api-version=2020-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/153cbbf5-472d-46c4-8772-0728a64cef0f?api-version=2020-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batchpendpointdefb137a.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Disabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"}},"identity":{"principalId":"9f75e0be-fe8d-4314-bf11-d49e7f28ceeb","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '2478' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:28 GMT + etag: + - '"0x8D8037D8F629560"' + expires: + - '-1' + last-modified: + - Fri, 29 May 2020 03:08:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"location": "westcentralus", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "subnets": [{"properties": {"addressPrefix": "10.0.0.0/24", + "privateEndpointNetworkPolicies": "Disabled"}, "name": "subnetdefb137a"}], "enableDdosProtection": + false, "enableVmProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '294' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2020-04-01 + response: + body: + string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"073eb38c-eca8-4e64-99c7-b0c40922e9a8\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"12559fdb-fc54-42fb-8c53-fbf3491609e6\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"073eb38c-eca8-4e64-99c7-b0c40922e9a8\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/bd1050e4-8401-42b0-a699-c147f1a53417?api-version=2020-04-01 + cache-control: + - no-cache + content-length: + - '1411' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ee96102a-72a3-4b5b-9f34-99c60019b5f8 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/bd1050e4-8401-42b0-a699-c147f1a53417?api-version=2020-04-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - f38bcfe2-4680-42e0-b5cb-5d0682aae247 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2020-04-01 + response: + body: + string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"6618c5b8-665c-4eb8-b461-3aa12538cfda\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"12559fdb-fc54-42fb-8c53-fbf3491609e6\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"6618c5b8-665c-4eb8-b461-3aa12538cfda\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1413' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:34 GMT + etag: + - W/"6618c5b8-665c-4eb8-b461-3aa12538cfda" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 058492e9-1099-430c-a5b1-4bc2e1d1a037 + status: + code: 200 + message: OK +- request: + body: 'b''b\''b\\\''{"location": "westcentralus", "properties": {"subnet": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a"}, + "manualPrivateLinkServiceConnections": [{"properties": {"privateLinkServiceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a", + "groupIds": ["batchAccount"]}, "name": "pecdefb137a"}]}}\\\''\''''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '634' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2020-04-01 + response: + body: + string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n + \ \"etag\": \"W/\\\"aaddeb06-c44f-4ffb-9870-20d50a6f4bb8\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westcentralus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"1dfeba6e-c3e8-4a61-8c02-cb28211cead2\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n + \ \"etag\": \"W/\\\"aaddeb06-c44f-4ffb-9870-20d50a6f4bb8\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n + \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"Awaiting Approval\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.2ebb2359-4cf0-41fd-8411-03c4ed7dc473\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/1487798a-65a1-45c7-8cf0-01c3502111d5?api-version=2020-04-01 + cache-control: + - no-cache + content-length: + - '2246' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 340013b5-d7ac-49c7-a079-ace3d430f8dd + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/1487798a-65a1-45c7-8cf0-01c3502111d5?api-version=2020-04-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a5e6dadd-65ab-4115-89e1-202075f60d21 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-network/10.2.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2020-04-01 + response: + body: + string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n + \ \"etag\": \"W/\\\"3f048a5b-91b3-4d59-9154-626a601d0f44\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westcentralus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"1dfeba6e-c3e8-4a61-8c02-cb28211cead2\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n + \ \"etag\": \"W/\\\"3f048a5b-91b3-4d59-9154-626a601d0f44\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n + \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"Manual approval still required\",\r\n + \ \"actionsRequired\": \"Manual approval request\"\r\n }\r\n + \ },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.2ebb2359-4cf0-41fd-8411-03c4ed7dc473\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2279' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:47 GMT + etag: + - W/"3f048a5b-91b3-4d59-9154-626a601d0f44" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 60d27e08-ac5e-4d0e-8b39-e0df149e6f08 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources?api-version=2020-05-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.westcentralus.batch.azure.com"]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '503' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a?api-version=2020-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.westcentralus.batch.azure.com"]}}' + headers: + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections?api-version=2020-05-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","name":"pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8037D9843C789\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual + approval still required","actionsRequired":"Manual approval request"}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '878' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2?api-version=2020-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","name":"pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8037D9843C789\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual + approval still required","actionsRequired":"Manual approval request"}}}' + headers: + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:48 GMT + etag: + - W/"0x8D8037D9843C789" + expires: + - '-1' + last-modified: + - Fri, 29 May 2020 03:08:43 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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": {"privateLinkServiceConnectionState": {"status": "Approved", + "description": "Approved for test"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2?api-version=2020-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","name":"pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8037D9843C789\"","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved + for test","actionsRequired":"Manual approval request"}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2$88aef38e-9cc1-467f-9ff4-0b2479f53650?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '853' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:08:48 GMT + etag: + - W/"0x8D8037D9843C789" + expires: + - '-1' + last-modified: + - Fri, 29 May 2020 03:08:43 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2$88aef38e-9cc1-467f-9ff4-0b2479f53650?api-version=2020-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2$88aef38e-9cc1-467f-9ff4-0b2479f53650?api-version=2020-05-01 + response: + body: + string: '{"status":"Succeeded","retryAfter":0}' + headers: + cache-control: + - no-cache + content-length: + - '37' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:09:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2?api-version=2020-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","name":"pedefb137a.1dfeba6e-c3e8-4a61-8c02-cb28211cead2","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8037D9843C789\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved + for test","actionsRequired":"Manual approval request"}}}' + headers: + cache-control: + - no-cache + content-length: + - '854' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:09:04 GMT + etag: + - W/"0x8D8037D9843C789" + expires: + - '-1' + last-modified: + - Fri, 29 May 2020 03:08:43 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml index 01086c215a44..3d380d48b97a 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-05-01 response: body: string: '{"nameAvailable":false,"reason":"Invalid","message":"Account name must @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:44:56 GMT + - Fri, 29 May 2020 03:09:09 GMT expires: - '-1' pragma: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-05-01 response: body: string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"An account @@ -83,7 +83,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:44:56 GMT + - Fri, 29 May 2020 03:09:09 GMT expires: - '-1' pragma: @@ -117,12 +117,12 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2020-05-01 response: body: string: '{"nameAvailable":true}' @@ -134,7 +134,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:44:56 GMT + - Fri, 29 May 2020 03:09:10 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml index 8c8d7a78afe2..59d0a70153a3 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml @@ -1,7 +1,8 @@ interactions: - request: body: 'b''b\''b\\\''{"location": "westcentralus", "properties": {"autoStorage": - {"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch93ef11ff"}}}\\\''\''''' + {"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch"}, + "publicNetworkAccess": "Enabled"}}\\\''\''''' headers: Accept: - application/json @@ -10,16 +11,16 @@ interactions: Connection: - keep-alive Content-Length: - - '263' + - '297' Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff?api-version=2020-05-01 response: body: string: '' @@ -29,11 +30,11 @@ interactions: content-length: - '0' date: - - Tue, 06 Aug 2019 23:08:03 GMT + - Fri, 29 May 2020 03:09:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/operationResults/918bbd5e-21a4-4955-9607-e269a0642d16?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/operationResults/071e7246-031e-4457-aded-d84fa18294bc?api-version=2020-05-01 pragma: - no-cache server: @@ -43,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -57,28 +58,28 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/operationResults/918bbd5e-21a4-4955-9607-e269a0642d16?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/operationResults/071e7246-031e-4457-aded-d84fa18294bc?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff","name":"batch93ef11ff","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch93ef11ff.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch93ef11ff","lastKeySync":"2019-08-06T23:08:03.7821041Z"},"poolAllocationMode":"BatchService"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch","name":"batch","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":false,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch","lastKeySync":"2020-05-29T03:09:39.4645207Z"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2169' + - '2542' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:19 GMT + - Fri, 29 May 2020 03:09:54 GMT etag: - - '"0x8D71AC2F8C9C715"' + - '"0x8D8037DC34DFE60"' expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:19 GMT + - Fri, 29 May 2020 03:09:55 GMT pragma: - no-cache server: @@ -106,12 +107,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/syncAutoStorageKeys?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/syncAutoStorageKeys?api-version=2020-05-01 response: body: string: '' @@ -119,7 +120,7 @@ interactions: cache-control: - no-cache date: - - Tue, 06 Aug 2019 23:08:20 GMT + - Fri, 29 May 2020 03:09:55 GMT expires: - '-1' pragma: @@ -149,15 +150,15 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D71AC2F94CC825\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8037DC3CF7842\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' headers: cache-control: - no-cache @@ -166,13 +167,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:20 GMT + - Fri, 29 May 2020 03:09:55 GMT etag: - - W/"0x8D71AC2F94CC825" + - W/"0x8D8037DC3CF7842" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:20 GMT + - Fri, 29 May 2020 03:09:56 GMT pragma: - no-cache server: @@ -186,7 +187,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -200,15 +201,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D71AC2F94CC825\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8037DC3CF7842\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' headers: cache-control: - no-cache @@ -217,13 +218,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:21 GMT + - Fri, 29 May 2020 03:09:55 GMT etag: - - W/"0x8D71AC2F94CC825" + - W/"0x8D8037DC3CF7842" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:20 GMT + - Fri, 29 May 2020 03:09:56 GMT pragma: - no-cache server: @@ -249,15 +250,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications?api-version=2020-05-01 response: body: - string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D71AC2F94CC825\"","properties":{"displayName":"my_application_name","allowUpdates":true}}]}' + string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8037DC3CF7842\"","properties":{"displayName":"my_application_name","allowUpdates":true}}]}' headers: cache-control: - no-cache @@ -266,7 +267,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:21 GMT + - Fri, 29 May 2020 03:09:56 GMT expires: - '-1' pragma: @@ -298,30 +299,30 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D71AC2F9F35F71\"","properties":{"storageUrl":"https://batch93ef11ff.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-ec2f7069-8bae-4ca2-b990-193b749f8d9e?sv=2018-03-28&sr=b&sig=mAWRdMy1EVtDWOl04CDWpkwIsVsOkdm873CI08HK4oA%3D&st=2019-08-06T23%3A03%3A21Z&se=2019-08-07T03%3A08%3A21Z&sp=rw","storageUrlExpiry":"2019-08-07T03:08:21.5743196Z","state":"Pending"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8037DC43F8C7F\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-8c9495a5c8784e1784ae918de3cf8665/v1.0?sv=2018-03-28&sr=b&sig=Cl1HH0LUt7%2FjHyZrIs7SZSv49%2B4jymCCCkXg3MWyec4%3D&st=2020-05-29T03%3A04%3A57Z&se=2020-05-29T07%3A09%3A57Z&sp=rw","storageUrlExpiry":"2020-05-29T07:09:57.1299157Z","state":"Pending"}}' headers: cache-control: - no-cache content-length: - - '732' + - '673' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:21 GMT + - Fri, 29 May 2020 03:09:56 GMT etag: - - W/"0x8D71AC2F9F35F71" + - W/"0x8D8037DC43F8C7F" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:21 GMT + - Fri, 29 May 2020 03:09:57 GMT pragma: - no-cache server: @@ -335,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 200 message: OK @@ -351,11 +352,11 @@ interactions: Content-Length: - '11' User-Agent: - - python-requests/2.22.0 + - python-requests/2.23.0 x-ms-blob-type: - BlockBlob method: PUT - uri: https://batch93ef11ff.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-ec2f7069-8bae-4ca2-b990-193b749f8d9e?sv=2018-03-28&sr=b&sig=mAWRdMy1EVtDWOl04CDWpkwIsVsOkdm873CI08HK4oA%3D&st=2019-08-06T23%3A03%3A21Z&se=2019-08-07T03%3A08%3A21Z&sp=rw + uri: https://batch.blob.core.windows.net/app-my-application-id-8c9495a5c8784e1784ae918de3cf8665/v1.0?sv=2018-03-28&sr=b&sig=Cl1HH0LUt7%2FjHyZrIs7SZSv49%2B4jymCCCkXg3MWyec4%3D&st=2020-05-29T03%3A04%3A57Z&se=2020-05-29T07%3A09%3A57Z&sp=rw response: body: string: '' @@ -365,11 +366,11 @@ interactions: content-md5: - sQqNsWTgdUEFt6mb5y4/5Q== date: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:57 GMT etag: - - '"0x8D71AC2FAFE2136"' + - '"0x8D8037DC5315BF2"' last-modified: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:58 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -393,30 +394,30 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0/activate?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0/activate?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D71AC2FB1F6B6E\"","properties":{"storageUrl":"https://batch93ef11ff.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-ec2f7069-8bae-4ca2-b990-193b749f8d9e?sv=2018-03-28&sr=b&sig=q1eSJUY%2BWeCnZ1XCckRwFPuzxfjipJVyzGx2y%2Fb62hM%3D&st=2019-08-06T23%3A03%3A23Z&se=2019-08-07T03%3A08%3A23Z&sp=rw","storageUrlExpiry":"2019-08-07T03:08:23.5706989Z","state":"Active","format":"zip","lastActivationTime":"2019-08-06T23:08:23.5272786Z"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8037DC55266F8\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-8c9495a5c8784e1784ae918de3cf8665/v1.0?sv=2018-03-28&sr=b&sig=PYl5%2BYUTsww2GhaTKV5dkG%2FxeU1Dm8eQd4jCQmJeF4g%3D&st=2020-05-29T03%3A04%3A58Z&se=2020-05-29T07%3A09%3A58Z&sp=rw","storageUrlExpiry":"2020-05-29T07:09:58.9545243Z","state":"Active","format":"zip","lastActivationTime":"2020-05-29T03:09:58.916835Z"}}' headers: cache-control: - no-cache content-length: - - '802' + - '738' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:58 GMT etag: - - W/"0x8D71AC2FB1F6B6E" + - W/"0x8D8037DC55266F8" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:58 GMT pragma: - no-cache server: @@ -449,15 +450,15 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D71AC2FB4EE876\"","properties":{"displayName":"my_updated_name","allowUpdates":false,"defaultVersion":"v1.0"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8037DC586037F\"","properties":{"displayName":"my_updated_name","allowUpdates":false,"defaultVersion":"v1.0"}}' headers: cache-control: - no-cache @@ -466,13 +467,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:58 GMT etag: - - W/"0x8D71AC2FB4EE876" + - W/"0x8D8037DC586037F" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:59 GMT pragma: - no-cache server: @@ -486,7 +487,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 200 message: OK @@ -500,30 +501,30 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-05-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D71AC2FB1F6B6E\"","properties":{"storageUrl":"https://batch93ef11ff.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-ec2f7069-8bae-4ca2-b990-193b749f8d9e?sv=2018-03-28&sr=b&sig=OIoy9faSxWf3PIft83Aln6OQvGtMolgIwvejGz7ufp4%3D&st=2019-08-06T23%3A03%3A24Z&se=2019-08-07T03%3A08%3A24Z&sp=r","storageUrlExpiry":"2019-08-07T03:08:24.0635206Z","state":"Active","format":"zip","lastActivationTime":"2019-08-06T23:08:23.5272786Z"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8037DC55266F8\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-8c9495a5c8784e1784ae918de3cf8665/v1.0?sv=2018-03-28&sr=b&sig=F3ZDnIpEI6KglN9dJg0%2B%2F5g5pcaF4FKF%2FiiqwQMsmXc%3D&st=2020-05-29T03%3A04%3A59Z&se=2020-05-29T07%3A09%3A59Z&sp=r","storageUrlExpiry":"2020-05-29T07:09:59.5298339Z","state":"Active","format":"zip","lastActivationTime":"2020-05-29T03:09:58.916835Z"}}' headers: cache-control: - no-cache content-length: - - '797' + - '739' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Aug 2019 23:08:24 GMT + - Fri, 29 May 2020 03:09:58 GMT etag: - - W/"0x8D71AC2FB1F6B6E" + - W/"0x8D8037DC55266F8" expires: - '-1' last-modified: - - Tue, 06 Aug 2019 23:08:23 GMT + - Fri, 29 May 2020 03:09:58 GMT pragma: - no-cache server: @@ -551,12 +552,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id/versions/v1.0?api-version=2020-05-01 response: body: string: '' @@ -566,7 +567,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Aug 2019 23:08:24 GMT + - Fri, 29 May 2020 03:09:59 GMT expires: - '-1' pragma: @@ -594,12 +595,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff/applications/my_application_id?api-version=2020-05-01 response: body: string: '' @@ -609,7 +610,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Aug 2019 23:08:25 GMT + - Fri, 29 May 2020 03:09:59 GMT expires: - '-1' pragma: @@ -637,12 +638,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch93ef11ff?api-version=2020-05-01 response: body: string: '' @@ -652,11 +653,11 @@ interactions: content-length: - '0' date: - - Tue, 06 Aug 2019 23:08:25 GMT + - Fri, 29 May 2020 03:09:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch93ef11ff-4cc29555-1661-4a64-b80c-b1939fe353fc?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch-acab0ae9-ac1b-402b-b3d3-085eb19db9b6?api-version=2020-05-01 pragma: - no-cache server: @@ -680,10 +681,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.6 (Windows-10-10.0.14393-SP0) msrest/0.6.9 msrest_azure/0.4.34 - azure-mgmt-batch/7.0.0 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch93ef11ff-4cc29555-1661-4a64-b80c-b1939fe353fc?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch-acab0ae9-ac1b-402b-b3d3-085eb19db9b6?api-version=2020-05-01 response: body: string: '' @@ -693,7 +694,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Aug 2019 23:08:41 GMT + - Fri, 29 May 2020 03:10:15 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml index 1c058165697c..2343d1553dff 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml @@ -9,13 +9,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-keyvault/2.1.1 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-keyvault/2.2.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchthagcx73omz5pmblb7s?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchxtk3agb5zuivqarycco?api-version=2019-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchthagcx73omz5pmblb7s","name":"batchthagcx73omz5pmblb7s","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"keys":["all"],"secrets":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"enableSoftDelete":true,"vaultUri":"https://batchthagcx73omz5pmblb7s.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchxtk3agb5zuivqarycco","name":"batchxtk3agb5zuivqarycco","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"keys":["all"],"secrets":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"enableSoftDelete":true,"vaultUri":"https://batchxtk3agb5zuivqarycco.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -24,7 +24,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:10:45 GMT + - Fri, 29 May 2020 03:11:00 GMT expires: - '-1' pragma: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.1.0.276 + - 1.1.0.281 x-powered-by: - ASP.NET status: @@ -63,16 +63,16 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2020-05-01 response: body: string: '{"error":{"code":"InvalidRequestBody","message":"The specified Request - Body is not syntactically valid.\nRequestId:c9d69eea-e73a-4155-ae8f-4e07654f8eb7\nTime:2020-04-10T21:10:47.9243110Z","target":"BatchAccount","details":[{"code":"Reason","message":"keyVaultReference + Body is not syntactically valid.\nRequestId:00fb2b02-6023-4a60-8135-ce46fb0bc585\nTime:2020-05-29T03:11:02.8471169Z","target":"BatchAccount","details":[{"code":"Reason","message":"keyVaultReference must be set if poolAllocationMode is specified as ''UserSubscription'' on a PUT request"}]}}' headers: @@ -83,7 +83,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:10:48 GMT + - Fri, 29 May 2020 03:11:03 GMT expires: - '-1' pragma: @@ -95,14 +95,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 400 message: The specified Request Body is not syntactically valid. - request: body: 'b''b\''{"location": "westcentralus", "properties": {"poolAllocationMode": - "UserSubscription", "keyVaultReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchthagcx73omz5pmblb7s", - "url": "https://batchthagcx73omz5pmblb7s.vault.azure.net/"}, "publicNetworkAccess": + "UserSubscription", "keyVaultReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchxtk3agb5zuivqarycco", + "url": "https://batchxtk3agb5zuivqarycco.vault.azure.net/"}, "publicNetworkAccess": "Enabled"}}\''''' headers: Accept: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2020-05-01 response: body: string: '' @@ -131,11 +131,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 21:10:50 GMT + - Fri, 29 May 2020 03:11:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201/operationResults/c690b77c-1b88-46f3-8aaf-ef625c431abb?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201/operationResults/8240d297-9c28-419e-98e6-0cc716099d34?api-version=2020-05-01 pragma: - no-cache server: @@ -145,7 +145,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 202 message: Accepted @@ -159,28 +159,28 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201/operationResults/c690b77c-1b88-46f3-8aaf-ef625c431abb?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201/operationResults/8240d297-9c28-419e-98e6-0cc716099d34?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201","name":"batch94171201","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch94171201.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuotaPerVMFamilyEnforced":false,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"UserSubscription","keyVaultReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchthagcx73omz5pmblb7s","url":"https://batchthagcx73omz5pmblb7s.vault.azure.net/"},"publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201","name":"batch94171201","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch94171201.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuotaPerVMFamilyEnforced":false,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"UserSubscription","keyVaultReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.KeyVault/vaults/batchxtk3agb5zuivqarycco","url":"https://batchxtk3agb5zuivqarycco.vault.azure.net/"},"publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '864' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:11:06 GMT + - Fri, 29 May 2020 03:11:29 GMT etag: - - '"0x8D7DD93AF02E362"' + - '"0x8D8037DFBFD84B7"' expires: - '-1' last-modified: - - Fri, 10 Apr 2020 21:11:06 GMT + - Fri, 29 May 2020 03:11:30 GMT pragma: - no-cache server: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml index 937665b932ce..c5df9298ffde 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml @@ -15,15 +15,65 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-05-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D7DD7F7C425FEE\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T18:46:31.1475385Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not receive + a response from ''Microsoft.Batch'' within the specified time period."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '143' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2020 03:12:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + status: + code: 504 + message: Gateway Timeout +- request: + body: '{"properties": {"thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "format": "Pfx", "data": "MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ+q9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g+6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj+hq0lKEdnhtCKr03AIfukN6+4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq+dghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C+RTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen+2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2+03RKbVGw72Mr/0xKZ+awAnEfoU+SL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB+zCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m+rBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z+OeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=", + "password": "nodesdk"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2277' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-05-01 + response: + body: + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8037E19E957D4\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T03:12:20.8380433Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache @@ -32,13 +82,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT etag: - - W/"0x8D7DD7F7C425FEE" + - W/"0x8D8037E19E957D4" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT pragma: - no-cache server: @@ -66,15 +116,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates?api-version=2020-05-01 response: body: - string: '{"value":[{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D7DD7F7C425FEE\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T18:46:31.1475385Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}]}' + string: '{"value":[{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8037E19E957D4\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T03:12:20.8380433Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}]}' headers: cache-control: - no-cache @@ -83,7 +133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT expires: - '-1' pragma: @@ -111,15 +161,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-05-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D7DD7F7C425FEE\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T18:46:31.1475385Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8037E19E957D4\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T03:12:20.8380433Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache @@ -128,13 +178,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT etag: - - W/"0x8D7DD7F7C425FEE" + - W/"0x8D8037E19E957D4" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT pragma: - no-cache server: @@ -165,15 +215,15 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-05-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D7DD7F7C425FEE\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T18:46:31.1475385Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8037E19E957D4\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T03:12:20.8380433Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache @@ -182,13 +232,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT etag: - - W/"0x8D7DD7F7C425FEE" + - W/"0x8D8037E19E957D4" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT pragma: - no-cache server: @@ -218,15 +268,15 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2020-05-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D7DD7F7C425FEE\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T18:46:31.1475385Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8037E19E957D4\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T03:12:20.8380433Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache @@ -235,13 +285,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:21 GMT etag: - - W/"0x8D7DD7F7C425FEE" + - W/"0x8D8037E19E957D4" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:20 GMT pragma: - no-cache server: @@ -271,12 +321,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-05-01 response: body: string: '' @@ -286,11 +336,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:46:31 GMT + - Fri, 29 May 2020 03:12:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D7DD7F7CDBE058?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D8037E1AAABFFE?api-version=2020-05-01 pragma: - no-cache server: @@ -314,10 +364,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D7DD7F7CDBE058?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D8037E1AAABFFE?api-version=2020-05-01 response: body: string: '' @@ -327,11 +377,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:46:47 GMT + - Fri, 29 May 2020 03:12:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 pragma: - no-cache server: @@ -353,10 +403,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 response: body: string: '' @@ -366,11 +416,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:47:02 GMT + - Fri, 29 May 2020 03:12:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 pragma: - no-cache server: @@ -392,10 +442,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 response: body: string: '' @@ -405,11 +455,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:47:17 GMT + - Fri, 29 May 2020 03:13:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 pragma: - no-cache server: @@ -431,10 +481,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 response: body: string: '' @@ -444,11 +494,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:47:32 GMT + - Fri, 29 May 2020 03:13:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 pragma: - no-cache server: @@ -470,10 +520,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7dd7f7cdbe058?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8037e1aaabffe?api-version=2020-05-01 response: body: string: '' @@ -483,7 +533,7 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 18:47:47 GMT + - Fri, 29 May 2020 03:13:37 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml index b1e372798d72..6d492b6d7342 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/providers/Microsoft.Batch/operations?api-version=2020-03-01 + uri: https://management.azure.com/providers/Microsoft.Batch/operations?api-version=2020-05-01 response: body: string: '{"value":[{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft @@ -186,12 +186,18 @@ interactions: Private endpoint connections on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionResults/read","display":{"provider":"Microsoft Batch","resource":"PrivateEndpointConnections","operation":"Get Batch account private endpoint connection operation results","description":"Gets the results - of a long running Batch account private endpoint connection operation"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/write","display":{"provider":"Microsoft + of a long running Batch account private endpoint connection operation"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/validate/action","display":{"provider":"Microsoft + Batch","resource":"PrivateEndpointConnectionProxies","operation":"Validates + a Private endpoint connection proxy","description":"Validates a Private endpoint + connection proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/write","display":{"provider":"Microsoft Batch","resource":"PrivateEndpointConnectionProxies","operation":"Create or Update Private endpoint connection proxy","description":"Create a new Private endpoint connection proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/read","display":{"provider":"Microsoft Batch","resource":"PrivateEndpointConnectionProxies","operation":"Get Private endpoint connection proxy","description":"Gets Private endpoint connection + proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/delete","display":{"provider":"Microsoft + Batch","resource":"PrivateEndpointConnectionProxies","operation":"Delete Private + endpoint connection proxy","description":"Delete a Private endpoint connection proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxyResults/read","display":{"provider":"Microsoft Batch","resource":"PrivateEndpointConnectionProxies","operation":"Get Batch account private endpoint connection proxy operation results","description":"Gets @@ -201,11 +207,11 @@ interactions: cache-control: - no-cache content-length: - - '26529' + - '27226' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:07:51 GMT + - Fri, 29 May 2020 03:19:45 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml index 70b6cba6ed81..f2d165f8fb91 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml @@ -19,31 +19,31 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD8285302DB0\"","properties":{"lastModified":"2020-04-10T19:08:14.6228656Z","creationTime":"2020-04-10T19:08:14.6228656Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:14.6228656Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:08:14.6228656Z","vmSize":"Small","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-04-10T19:08:14.6228656Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4E7A7DA36\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:22:46.6366006Z","creationTime":"2020-05-29T17:22:46.6366006Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:46.6366006Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:22:46.6366006Z","vmSize":"Small","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe + /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-05-29T17:22:46.6366006Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' headers: cache-control: - no-cache content-length: - - '1561' + - '1587' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:14 GMT + - Fri, 29 May 2020 17:22:46 GMT etag: - - W/"0x8D7DD8285302DB0" + - W/"0x8D803F4E7A7DA36" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 19:08:14 GMT + - Fri, 29 May 2020 17:22:46 GMT pragma: - no-cache server: @@ -80,31 +80,31 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD828572E580\"","properties":{"lastModified":"2020-04-10T19:08:15.0601088Z","creationTime":"2020-04-10T19:08:15.0601088Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:15.0601088Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:08:15.0601088Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-04-10T19:08:15.0601088Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4E7E72D6D\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:22:47.0516077Z","creationTime":"2020-05-29T17:22:47.0516077Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:47.0516077Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:22:47.0516077Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-05-29T17:22:47.0516077Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' headers: cache-control: - no-cache content-length: - - '1330' + - '1356' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:22:46 GMT etag: - - W/"0x8D7DD828572E580" + - W/"0x8D803F4E7E72D6D" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:22:47 GMT pragma: - no-cache server: @@ -132,26 +132,26 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools?api-version=2020-05-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD828572E580\"","properties":{"lastModified":"2020-04-10T19:08:15.0601088Z","creationTime":"2020-04-10T19:08:15.0601088Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:15.0601088Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:08:15.0601088Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-04-10T19:08:15.0601088Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD8285302DB0\"","properties":{"lastModified":"2020-04-10T19:08:14.6228656Z","creationTime":"2020-04-10T19:08:14.6228656Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:14.6228656Z","allocationState":"Steady","allocationStateTransitionTime":"2020-04-10T19:08:15.0458344Z","vmSize":"Small","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-04-10T19:08:14.6228656Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4E7E72D6D\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:22:47.0516077Z","creationTime":"2020-05-29T17:22:47.0516077Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:47.0516077Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:22:47.0516077Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-05-29T17:22:47.0516077Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4E7A7DA36\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:22:46.6366006Z","creationTime":"2020-05-29T17:22:46.6366006Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:46.6366006Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:22:46.6366006Z","vmSize":"Small","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe + /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-05-29T17:22:46.6366006Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}]}' headers: cache-control: - no-cache content-length: - - '2902' + - '2956' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:22:46 GMT expires: - '-1' pragma: @@ -183,31 +183,31 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD8285E1F311\"","properties":{"lastModified":"2020-04-10T19:08:15.7879057Z","creationTime":"2020-04-10T19:08:15.0601088Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:15.0601088Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:08:15.7879057Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2020-04-10T19:08:15.7879057Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4F18BD617\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:23:03.2302103Z","creationTime":"2020-05-29T17:22:47.0516077Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:47.0516077Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:23:03.2302103Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2020-05-29T17:23:03.2302103Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' headers: cache-control: - no-cache content-length: - - '1324' + - '1350' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:23:02 GMT etag: - - W/"0x8D7DD8285E1F311" + - W/"0x8D803F4F18BD617" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:23:03 GMT pragma: - no-cache server: @@ -235,31 +235,31 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD8285E1F311\"","properties":{"lastModified":"2020-04-10T19:08:15.7879057Z","creationTime":"2020-04-10T19:08:15.0601088Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:15.0601088Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:08:15.7879057Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2020-04-10T19:08:15.7879057Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F4F18BD617\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:23:03.2302103Z","creationTime":"2020-05-29T17:22:47.0516077Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:47.0516077Z","allocationState":"Steady","allocationStateTransitionTime":"2020-05-29T17:23:03.572301Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2020-05-29T17:22:47.0516077Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2020-05-29T17:23:03.2302103Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' headers: cache-control: - no-cache content-length: - - '1324' + - '1500' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:23:03 GMT etag: - - W/"0x8D7DD8285E1F311" + - W/"0x8D803F4F18BD617" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 19:08:15 GMT + - Fri, 29 May 2020 17:23:03 GMT pragma: - no-cache server: @@ -287,16 +287,16 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool/stopResize?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool/stopResize?api-version=2020-05-01 response: body: string: '{"error":{"code":"OperationInvalidForCurrentState","message":"The specified - operation is not valid for the current state of the resource.\nRequestId:9780a820-83f0-40d7-83d0-a6dfc7c534a4\nTime:2020-04-10T19:08:16.1732721Z","target":"BatchAccount","details":[{"code":"Reason","message":"The + operation is not valid for the current state of the resource.\nRequestId:6f2d8aa2-5798-44e2-92f0-0de0b524b64b\nTime:2020-05-29T17:23:03.9595120Z","target":"BatchAccount","details":[{"code":"Reason","message":"The specified pool has AutoScale enabled. AutoScale resize cannot be stopped"}]}}' headers: cache-control: @@ -306,7 +306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:08:16 GMT + - Fri, 29 May 2020 17:23:03 GMT expires: - '-1' pragma: @@ -334,31 +334,31 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool/disableAutoScale?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool/disableAutoScale?api-version=2020-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D7DD833944235A\"","properties":{"lastModified":"2020-04-10T19:13:16.743561Z","creationTime":"2020-04-10T19:08:15.0601088Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-04-10T19:08:15.0601088Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-04-10T19:13:16.743561Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D803F5A57A8750\"","properties":{"displayName":"test_pool","lastModified":"2020-05-29T17:28:05.1066704Z","creationTime":"2020-05-29T17:22:47.0516077Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2020-05-29T17:22:47.0516077Z","allocationState":"Resizing","allocationStateTransitionTime":"2020-05-29T17:28:05.1066704Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","maxTasksPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' headers: cache-control: - no-cache content-length: - - '1175' + - '1203' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:13:16 GMT + - Fri, 29 May 2020 17:28:04 GMT etag: - - W/"0x8D7DD833944235A" + - W/"0x8D803F5A57A8750" expires: - '-1' last-modified: - - Fri, 10 Apr 2020 19:13:16 GMT + - Fri, 29 May 2020 17:28:05 GMT pragma: - no-cache server: @@ -388,12 +388,12 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2020-05-01 response: body: string: '' @@ -403,11 +403,11 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 19:13:16 GMT + - Fri, 29 May 2020 17:28:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2020-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2020-05-01 pragma: - no-cache server: @@ -431,10 +431,10 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2020-05-01 response: body: string: '' @@ -444,7 +444,7 @@ interactions: content-length: - '0' date: - - Fri, 10 Apr 2020 19:13:31 GMT + - Fri, 29 May 2020 17:28:20 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml index a2f0292a8bb9..9319815629bc 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml @@ -9,24 +9,24 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 - azure-mgmt-batch/2020-03-01 Azure-SDK-For-Python + - python/3.7.3 (Windows-10-10.0.18362-SP0) msrest/0.6.14 msrest_azure/0.4.34 + azure-mgmt-batch/9.0.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/quotas?api-version=2020-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/quotas?api-version=2020-05-01 response: body: - string: '{"accountQuota":3}' + string: '{"accountQuota":50}' headers: cache-control: - no-cache content-length: - - '18' + - '19' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:19:08 GMT + - Fri, 29 May 2020 03:26:38 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py index 8ebcb17661eb..61775ef2023a 100644 --- a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py +++ b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py @@ -14,6 +14,7 @@ import azure.mgmt.batch from azure.mgmt.batch import models +import azure.mgmt.network.models from azure.common.exceptions import CloudError from mgmt_batch_preparers import KeyVaultPreparer, SimpleBatchPreparer @@ -36,6 +37,8 @@ def setUp(self): azure.mgmt.batch.BatchManagementClient) self.mgmt_keyvault_client = self.create_mgmt_client( azure.mgmt.keyvault.KeyVaultManagementClient) + self.mgmt_network = self.create_mgmt_client( + azure.mgmt.network.NetworkManagementClient) def _get_account_name(self): return self.get_resource_name('batch')[-24:] @@ -43,7 +46,7 @@ def _get_account_name(self): def test_mgmt_batch_list_operations(self): operations = self.mgmt_batch_client.operations.list() all_ops = list(operations) - self.assertEqual(len(all_ops), 48) + self.assertEqual(len(all_ops), 50) self.assertEqual(all_ops[0].name, 'Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read') self.assertEqual(all_ops[0].origin, 'system') self.assertEqual(all_ops[0].display.provider, 'Microsoft Batch') @@ -52,7 +55,7 @@ def test_mgmt_batch_list_operations(self): def test_mgmt_batch_subscription_quota(self): quotas = self.mgmt_batch_client.location.get_quotas(AZURE_LOCATION) self.assertIsInstance(quotas, models.BatchLocationQuota) - self.assertEqual(quotas.account_quota, 3) + self.assertEqual(quotas.account_quota, 50) def test_mgmt_batch_account_name(self): # Test Invalid Account Name @@ -117,8 +120,8 @@ def test_mgmt_batch_account(self, resource_group, location): # Test Get Account account = self.mgmt_batch_client.batch_account.get(resource_group.name, account_name) - self.assertEqual(account.dedicated_core_quota, 0) - self.assertEqual(account.low_priority_core_quota, 0) + self.assertEqual(account.dedicated_core_quota, 700) + self.assertEqual(account.low_priority_core_quota, 500) self.assertEqual(account.pool_quota, 100) self.assertEqual(account.pool_allocation_mode.value, 'BatchService') @@ -140,7 +143,7 @@ def test_mgmt_batch_account(self, resource_group, location): # Test Update Account update_tags = {'Name': 'tagName', 'Value': 'tagValue'} - updated = self.mgmt_batch_client.batch_account.update(resource_group.name, account_name, update_tags) + updated = self.mgmt_batch_client.batch_account.update(resource_group.name, account_name, models.BatchAccountUpdateParameters(tags=update_tags)) self.assertIsInstance(updated, models.BatchAccount) self.assertEqual(updated.tags['Name'], 'tagName') self.assertEqual(updated.tags['Value'], 'tagValue') @@ -362,6 +365,8 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): ) ) ) + if self.is_live: + time.sleep(15) response = self.mgmt_batch_client.pool.update( resource_group.name, batch_account.name, iaas_pool, parameters) self.assertIsInstance(response, models.Pool) @@ -371,7 +376,7 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): resource_group.name, batch_account.name, iaas_pool) self.assertIsInstance(pool, models.Pool) self.assertEqual(pool.vm_size, 'STANDARD_A1'), - self.assertIsNone(pool.display_name), + self.assertIsNotNone(pool.display_name), # This assert should be reintroduced when targetDedidicated nodes can be 1+ # self.assertEqual(pool.allocation_state, models.AllocationState.resizing) self.assertEqual( @@ -393,12 +398,83 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): resource_group.name, batch_account.name, iaas_pool) self.assertIsNone(response.result()) - @ResourceGroupPreparer(location=AZURE_LOCATION) - @SimpleBatchPreparer(location=AZURE_LOCATION) - def test_mgmt_batch_private_endpoint_and_link(self, resource_group, location, batch_account): - result = self.mgmt_batch_client.private_link_resource.list_by_batch_account( - resource_group_name=resource_group, - account_name=batch_account) - result = self.mgmt_batch_client.private_endpoint_connection.list_by_batch_account( - resource_group_name=resource_group, - account_name=batch_account) \ No newline at end of file + @ResourceGroupPreparer(location=AZURE_LOCATION, random_name_enabled=True) + def test_mgmt_batch_account_advanced(self, resource_group, location): + batch_account_name = self.get_resource_name('batchpendpoint') + vnet_name = self.get_resource_name('vnet') + subnet_name = self.get_resource_name('subnet') + subnet_id = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworks/{}/subnets/{}".format( + self.settings.SUBSCRIPTION_ID, + resource_group.name, + vnet_name, + subnet_name) + private_endpoint_name = self.get_resource_name('pe') + private_connection_name = self.get_resource_name('pec') + private_link_service_id = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Batch/batchAccounts/{}'.format( + self.settings.SUBSCRIPTION_ID, + resource_group.name, + batch_account_name) + batch_account = models.BatchAccountCreateParameters( + location=location, + public_network_access='Disabled', + identity=models.BatchAccountIdentity( + type='SystemAssigned' + )) + self.mgmt_batch_client.batch_account.create( + resource_group_name=resource_group.name, + account_name=batch_account_name, + parameters=batch_account).result() + self.mgmt_network.virtual_networks.create_or_update( + resource_group_name=resource_group.name, + virtual_network_name=vnet_name, + parameters=self.mgmt_network.models().VirtualNetwork( + address_space=self.mgmt_network.models().AddressSpace( + address_prefixes=['10.0.0.0/16']), + location=location, + subnets=[ + self.mgmt_network.models().Subnet( + address_prefix='10.0.0.0/24', + name=subnet_name, + private_endpoint_network_policies='Disabled')]) + ).result() + self.mgmt_network.private_endpoints.create_or_update( + resource_group_name=resource_group.name, + private_endpoint_name=private_endpoint_name, + parameters=self.mgmt_network.models().PrivateEndpoint( + location=location, + subnet=self.mgmt_network.models().Subnet( + id=subnet_id + ), + manual_private_link_service_connections=[ + self.mgmt_network.models().PrivateLinkServiceConnection( + private_link_service_id=private_link_service_id, + group_ids=['batchAccount'], + name=private_connection_name + )] + ) + ).result() + private_links = self.mgmt_batch_client.private_link_resource.list_by_batch_account( + resource_group_name=resource_group.name, + account_name=batch_account_name) + private_link = private_links.__next__() + self.mgmt_batch_client.private_link_resource.get( + resource_group_name=resource_group.name, + account_name=batch_account_name, + private_link_resource_name=private_link.name) + private_endpoints = self.mgmt_batch_client.private_endpoint_connection.list_by_batch_account( + resource_group_name=resource_group.name, + account_name=batch_account_name) + + private_endpoint = private_endpoints.__next__() + self.mgmt_batch_client.private_endpoint_connection.get( + resource_group_name=resource_group.name, + account_name=batch_account_name, + private_endpoint_connection_name=private_endpoint.name) + self.mgmt_batch_client.private_endpoint_connection.update( + resource_group_name=resource_group.name, + account_name=batch_account_name, + private_endpoint_connection_name=private_endpoint.name, + private_link_service_connection_state=models.PrivateLinkServiceConnectionState( + status='Approved', + description='Approved for test' + )).result()