diff --git a/sdk/batch/azure-mgmt-batch/_meta.json b/sdk/batch/azure-mgmt-batch/_meta.json
index 7113854676cd..2fb9114654a5 100644
--- a/sdk/batch/azure-mgmt-batch/_meta.json
+++ b/sdk/batch/azure-mgmt-batch/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "90115af9fda46f323e5c42c274f2b376108d1d47",
+ "commit": "fa59e6a85e4134c89cbe297069fd582c5914943c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
- "autorest_command": "autorest specification/batch/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
+ "autorest_command": "autorest specification/batch/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/batch/resource-manager/readme.md"
}
\ No newline at end of file
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 f85febb2372e..7ec98f07c75e 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
@@ -61,7 +61,7 @@ class BatchManagementClient: # pylint: disable=client-accepts-api-version-keywo
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py
index c5d92b2fe025..ac476610c336 100644
--- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py
@@ -30,14 +30,14 @@ class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
- api_version: str = kwargs.pop("api_version", "2023-11-01")
+ api_version: str = kwargs.pop("api_version", "2024-02-01")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
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 e685abe42069..c23f64adb662 100644
--- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py
+++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "17.2.0"
+VERSION = "14.0.0b1"
diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py
index 1fb94fb338b2..514c28149a78 100644
--- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py
+++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py
@@ -61,7 +61,7 @@ class BatchManagementClient: # pylint: disable=client-accepts-api-version-keywo
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py
index bd09481f534c..2f71e5cff910 100644
--- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py
@@ -30,14 +30,14 @@ class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
- api_version: str = kwargs.pop("api_version", "2023-11-01")
+ api_version: str = kwargs.pop("api_version", "2024-02-01")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
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 539c9b68d8cb..b0c78856b0b6 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
@@ -16,6 +16,7 @@
from ._models_py3 import AutoStorageBaseProperties
from ._models_py3 import AutoStorageProperties
from ._models_py3 import AutoUserSpecification
+from ._models_py3 import AutomaticOSUpgradePolicy
from ._models_py3 import AzureBlobFileSystemConfiguration
from ._models_py3 import AzureFileShareConfiguration
from ._models_py3 import BatchAccount
@@ -92,6 +93,7 @@
from ._models_py3 import ResizeOperationStatus
from ._models_py3 import Resource
from ._models_py3 import ResourceFile
+from ._models_py3 import RollingUpgradePolicy
from ._models_py3 import ScaleSettings
from ._models_py3 import SecurityProfile
from ._models_py3 import ServiceArtifactReference
@@ -102,6 +104,7 @@
from ._models_py3 import TaskContainerSettings
from ._models_py3 import TaskSchedulingPolicy
from ._models_py3 import UefiSettings
+from ._models_py3 import UpgradePolicy
from ._models_py3 import UserAccount
from ._models_py3 import UserAssignedIdentities
from ._models_py3 import UserIdentity
@@ -148,6 +151,7 @@
from ._batch_management_client_enums import PublicNetworkAccessType
from ._batch_management_client_enums import ResourceIdentityType
from ._batch_management_client_enums import StorageAccountType
+from ._batch_management_client_enums import UpgradeMode
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk
@@ -163,6 +167,7 @@
"AutoStorageBaseProperties",
"AutoStorageProperties",
"AutoUserSpecification",
+ "AutomaticOSUpgradePolicy",
"AzureBlobFileSystemConfiguration",
"AzureFileShareConfiguration",
"BatchAccount",
@@ -239,6 +244,7 @@
"ResizeOperationStatus",
"Resource",
"ResourceFile",
+ "RollingUpgradePolicy",
"ScaleSettings",
"SecurityProfile",
"ServiceArtifactReference",
@@ -249,6 +255,7 @@
"TaskContainerSettings",
"TaskSchedulingPolicy",
"UefiSettings",
+ "UpgradePolicy",
"UserAccount",
"UserAssignedIdentities",
"UserIdentity",
@@ -294,6 +301,7 @@
"PublicNetworkAccessType",
"ResourceIdentityType",
"StorageAccountType",
+ "UpgradeMode",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
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 83c98ed41b5e..5594f40fbe2e 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
@@ -444,3 +444,23 @@ class StorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The data disk / OS disk should use premium locally redundant storage."""
STANDARD_SSD_LRS = "StandardSSD_LRS"
"""The data disk / OS disk should use standard SSD locally redundant storage."""
+
+
+class UpgradeMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control the application
+ of updates to virtual machines in the scale set. You do this by using the manualUpgrade
+ action.:code:`
`:code:`
` **Automatic** - All virtual machines in the scale set are
+ automatically updated at the same time.:code:`
`:code:`
` **Rolling** - Scale set
+ performs updates in batches with an optional pause time in between.
+ """
+
+ AUTOMATIC = "automatic"
+ """All virtual machines in the scale set are automatically updated at the same time."""
+ MANUAL = "manual"
+ """You control the application of updates to virtual machines in the scale set. You do this by
+ #: using the manualUpgrade action."""
+ ROLLING = "rolling"
+ """The existing instances in a scale set are brought down in batches to be upgraded. Once the
+ #: upgraded batch is complete, the instances will begin taking traffic again and the next batch
+ #: will begin. This continues until all instances brought up-to-date."""
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 ac3268ab03da..43a24799e6e6 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
@@ -259,6 +259,66 @@ def __init__(
self.version = version
+class AutomaticOSUpgradePolicy(_serialization.Model):
+ """The configuration parameters used for performing automatic OS upgrade.
+
+ :ivar disable_automatic_rollback: Whether OS image rollback feature should be disabled.
+ :vartype disable_automatic_rollback: bool
+ :ivar enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be
+ applied to scale set instances in a rolling fashion when a newer version of the OS image
+ becomes available. :code:`
`:code:`
` If this is set to true for Windows based pools,
+ `WindowsConfiguration.enableAutomaticUpdates
+ `_
+ cannot be set to true.
+ :vartype enable_automatic_os_upgrade: bool
+ :ivar use_rolling_upgrade_policy: Indicates whether rolling upgrade policy should be used
+ during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is
+ defined on the VMSS.
+ :vartype use_rolling_upgrade_policy: bool
+ :ivar os_rolling_upgrade_deferral: Defer OS upgrades on the TVMs if they are running tasks.
+ :vartype os_rolling_upgrade_deferral: bool
+ """
+
+ _attribute_map = {
+ "disable_automatic_rollback": {"key": "disableAutomaticRollback", "type": "bool"},
+ "enable_automatic_os_upgrade": {"key": "enableAutomaticOSUpgrade", "type": "bool"},
+ "use_rolling_upgrade_policy": {"key": "useRollingUpgradePolicy", "type": "bool"},
+ "os_rolling_upgrade_deferral": {"key": "osRollingUpgradeDeferral", "type": "bool"},
+ }
+
+ def __init__(
+ self,
+ *,
+ disable_automatic_rollback: Optional[bool] = None,
+ enable_automatic_os_upgrade: Optional[bool] = None,
+ use_rolling_upgrade_policy: Optional[bool] = None,
+ os_rolling_upgrade_deferral: Optional[bool] = None,
+ **kwargs: Any
+ ) -> None:
+ """
+ :keyword disable_automatic_rollback: Whether OS image rollback feature should be disabled.
+ :paramtype disable_automatic_rollback: bool
+ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be
+ applied to scale set instances in a rolling fashion when a newer version of the OS image
+ becomes available. :code:`
`:code:`
` If this is set to true for Windows based pools,
+ `WindowsConfiguration.enableAutomaticUpdates
+ `_
+ cannot be set to true.
+ :paramtype enable_automatic_os_upgrade: bool
+ :keyword use_rolling_upgrade_policy: Indicates whether rolling upgrade policy should be used
+ during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is
+ defined on the VMSS.
+ :paramtype use_rolling_upgrade_policy: bool
+ :keyword os_rolling_upgrade_deferral: Defer OS upgrades on the TVMs if they are running tasks.
+ :paramtype os_rolling_upgrade_deferral: bool
+ """
+ super().__init__(**kwargs)
+ self.disable_automatic_rollback = disable_automatic_rollback
+ self.enable_automatic_os_upgrade = enable_automatic_os_upgrade
+ self.use_rolling_upgrade_policy = use_rolling_upgrade_policy
+ self.os_rolling_upgrade_deferral = os_rolling_upgrade_deferral
+
+
class AutoScaleRun(_serialization.Model):
"""The results and errors from an execution of a pool autoscale formula.
@@ -2683,7 +2743,7 @@ def __init__(
publisher: Optional[str] = None,
offer: Optional[str] = None,
sku: Optional[str] = None,
- version: str = "latest",
+ version: Optional[str] = None,
id: Optional[str] = None, # pylint: disable=redefined-builtin
**kwargs: Any
) -> None:
@@ -3907,6 +3967,8 @@ class Pool(ProxyResource): # pylint: disable=too-many-instance-attributes
:ivar current_node_communication_mode: Determines how a pool communicates with the Batch
service. Known values are: "Default", "Classic", and "Simplified".
:vartype current_node_communication_mode: str or ~azure.mgmt.batch.models.NodeCommunicationMode
+ :ivar upgrade_policy: Describes an upgrade policy - automatic, manual, or rolling.
+ :vartype upgrade_policy: ~azure.mgmt.batch.models.UpgradePolicy
:ivar resource_tags: The user-defined tags to be associated with the Azure Batch Pool. When
specified, these tags are propagated to the backing Azure resources associated with the pool.
This property can only be specified when the Batch account was created with the
@@ -3965,6 +4027,7 @@ class Pool(ProxyResource): # pylint: disable=too-many-instance-attributes
"mount_configuration": {"key": "properties.mountConfiguration", "type": "[MountConfiguration]"},
"target_node_communication_mode": {"key": "properties.targetNodeCommunicationMode", "type": "str"},
"current_node_communication_mode": {"key": "properties.currentNodeCommunicationMode", "type": "str"},
+ "upgrade_policy": {"key": "properties.upgradePolicy", "type": "UpgradePolicy"},
"resource_tags": {"key": "properties.resourceTags", "type": "{str}"},
}
@@ -3988,6 +4051,7 @@ def __init__( # pylint: disable=too-many-locals
application_licenses: Optional[List[str]] = None,
mount_configuration: Optional[List["_models.MountConfiguration"]] = None,
target_node_communication_mode: Optional[Union[str, "_models.NodeCommunicationMode"]] = None,
+ upgrade_policy: Optional["_models.UpgradePolicy"] = None,
resource_tags: Optional[Dict[str, str]] = None,
**kwargs: Any
) -> None:
@@ -4065,6 +4129,8 @@ def __init__( # pylint: disable=too-many-locals
are: "Default", "Classic", and "Simplified".
:paramtype target_node_communication_mode: str or
~azure.mgmt.batch.models.NodeCommunicationMode
+ :keyword upgrade_policy: Describes an upgrade policy - automatic, manual, or rolling.
+ :paramtype upgrade_policy: ~azure.mgmt.batch.models.UpgradePolicy
:keyword resource_tags: The user-defined tags to be associated with the Azure Batch Pool. When
specified, these tags are propagated to the backing Azure resources associated with the pool.
This property can only be specified when the Batch account was created with the
@@ -4100,6 +4166,7 @@ def __init__( # pylint: disable=too-many-locals
self.mount_configuration = mount_configuration
self.target_node_communication_mode = target_node_communication_mode
self.current_node_communication_mode = None
+ self.upgrade_policy = upgrade_policy
self.resource_tags = resource_tags
@@ -4597,6 +4664,127 @@ def __init__(
self.identity_reference = identity_reference
+class RollingUpgradePolicy(_serialization.Model):
+ """The configuration parameters used while performing a rolling upgrade.
+
+ :ivar enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade
+ batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the
+ batch size. If this field is not set, Azure Azure Batch will not set its default value. The
+ value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the
+ default configurations on VirtualMachineScaleSet. This field is able to be set to true or false
+ only when using NodePlacementConfiguration as Zonal.
+ :vartype enable_cross_zone_upgrade: bool
+ :ivar max_batch_instance_percent: The maximum percent of total virtual machine instances that
+ will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum,
+ unhealthy instances in previous or future batches can cause the percentage of instances in a
+ batch to decrease to ensure higher reliability. The value of this field should be between 5 and
+ 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned
+ with value, the value of maxBatchInstancePercent should not be more than
+ maxUnhealthyInstancePercent.
+ :vartype max_batch_instance_percent: int
+ :ivar max_unhealthy_instance_percent: The maximum percentage of the total virtual machine
+ instances in the scale set that can be simultaneously unhealthy, either as a result of being
+ upgraded, or by being found in an unhealthy state by the virtual machine health checks before
+ the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The
+ value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and
+ maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent
+ should not be more than maxUnhealthyInstancePercent.
+ :vartype max_unhealthy_instance_percent: int
+ :ivar max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual
+ machine instances that can be found to be in an unhealthy state. This check will happen after
+ each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The
+ value of this field should be between 0 and 100, inclusive.
+ :vartype max_unhealthy_upgraded_instance_percent: int
+ :ivar pause_time_between_batches: The wait time between completing the update for all virtual
+ machines in one batch and starting the next batch. The time duration should be specified in ISO
+ 8601 format.
+ :vartype pause_time_between_batches: str
+ :ivar prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before any
+ healthy instances.
+ :vartype prioritize_unhealthy_instances: bool
+ :ivar rollback_failed_instances_on_policy_breach: Rollback failed instances to previous model
+ if the Rolling Upgrade policy is violated.
+ :vartype rollback_failed_instances_on_policy_breach: bool
+ """
+
+ _validation = {
+ "max_batch_instance_percent": {"maximum": 100, "minimum": 5},
+ "max_unhealthy_instance_percent": {"maximum": 100, "minimum": 5},
+ "max_unhealthy_upgraded_instance_percent": {"maximum": 100, "minimum": 0},
+ }
+
+ _attribute_map = {
+ "enable_cross_zone_upgrade": {"key": "enableCrossZoneUpgrade", "type": "bool"},
+ "max_batch_instance_percent": {"key": "maxBatchInstancePercent", "type": "int"},
+ "max_unhealthy_instance_percent": {"key": "maxUnhealthyInstancePercent", "type": "int"},
+ "max_unhealthy_upgraded_instance_percent": {"key": "maxUnhealthyUpgradedInstancePercent", "type": "int"},
+ "pause_time_between_batches": {"key": "pauseTimeBetweenBatches", "type": "str"},
+ "prioritize_unhealthy_instances": {"key": "prioritizeUnhealthyInstances", "type": "bool"},
+ "rollback_failed_instances_on_policy_breach": {"key": "rollbackFailedInstancesOnPolicyBreach", "type": "bool"},
+ }
+
+ def __init__(
+ self,
+ *,
+ enable_cross_zone_upgrade: Optional[bool] = None,
+ max_batch_instance_percent: Optional[int] = None,
+ max_unhealthy_instance_percent: Optional[int] = None,
+ max_unhealthy_upgraded_instance_percent: Optional[int] = None,
+ pause_time_between_batches: Optional[str] = None,
+ prioritize_unhealthy_instances: Optional[bool] = None,
+ rollback_failed_instances_on_policy_breach: Optional[bool] = None,
+ **kwargs: Any
+ ) -> None:
+ """
+ :keyword enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing
+ upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to
+ determine the batch size. If this field is not set, Azure Azure Batch will not set its default
+ value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be
+ decided by the default configurations on VirtualMachineScaleSet. This field is able to be set
+ to true or false only when using NodePlacementConfiguration as Zonal.
+ :paramtype enable_cross_zone_upgrade: bool
+ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances
+ that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum,
+ unhealthy instances in previous or future batches can cause the percentage of instances in a
+ batch to decrease to ensure higher reliability. The value of this field should be between 5 and
+ 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned
+ with value, the value of maxBatchInstancePercent should not be more than
+ maxUnhealthyInstancePercent.
+ :paramtype max_batch_instance_percent: int
+ :keyword max_unhealthy_instance_percent: The maximum percentage of the total virtual machine
+ instances in the scale set that can be simultaneously unhealthy, either as a result of being
+ upgraded, or by being found in an unhealthy state by the virtual machine health checks before
+ the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The
+ value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and
+ maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent
+ should not be more than maxUnhealthyInstancePercent.
+ :paramtype max_unhealthy_instance_percent: int
+ :keyword max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual
+ machine instances that can be found to be in an unhealthy state. This check will happen after
+ each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The
+ value of this field should be between 0 and 100, inclusive.
+ :paramtype max_unhealthy_upgraded_instance_percent: int
+ :keyword pause_time_between_batches: The wait time between completing the update for all
+ virtual machines in one batch and starting the next batch. The time duration should be
+ specified in ISO 8601 format.
+ :paramtype pause_time_between_batches: str
+ :keyword prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before
+ any healthy instances.
+ :paramtype prioritize_unhealthy_instances: bool
+ :keyword rollback_failed_instances_on_policy_breach: Rollback failed instances to previous
+ model if the Rolling Upgrade policy is violated.
+ :paramtype rollback_failed_instances_on_policy_breach: bool
+ """
+ super().__init__(**kwargs)
+ self.enable_cross_zone_upgrade = enable_cross_zone_upgrade
+ self.max_batch_instance_percent = max_batch_instance_percent
+ self.max_unhealthy_instance_percent = max_unhealthy_instance_percent
+ self.max_unhealthy_upgraded_instance_percent = max_unhealthy_upgraded_instance_percent
+ self.pause_time_between_batches = pause_time_between_batches
+ self.prioritize_unhealthy_instances = prioritize_unhealthy_instances
+ self.rollback_failed_instances_on_policy_breach = rollback_failed_instances_on_policy_breach
+
+
class ScaleSettings(_serialization.Model):
"""Defines the desired size of the pool. This can either be 'fixedScale' where the requested
targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically
@@ -4865,18 +5053,22 @@ class SupportedSku(_serialization.Model):
:vartype family_name: str
:ivar capabilities: A collection of capabilities which this SKU supports.
:vartype capabilities: list[~azure.mgmt.batch.models.SkuCapability]
+ :ivar batch_support_end_of_life: The time when Azure Batch service will retire this SKU.
+ :vartype batch_support_end_of_life: ~datetime.datetime
"""
_validation = {
"name": {"readonly": True},
"family_name": {"readonly": True},
"capabilities": {"readonly": True},
+ "batch_support_end_of_life": {"readonly": True},
}
_attribute_map = {
"name": {"key": "name", "type": "str"},
"family_name": {"key": "familyName", "type": "str"},
"capabilities": {"key": "capabilities", "type": "[SkuCapability]"},
+ "batch_support_end_of_life": {"key": "batchSupportEndOfLife", "type": "iso-8601"},
}
def __init__(self, **kwargs: Any) -> None:
@@ -4885,6 +5077,7 @@ def __init__(self, **kwargs: Any) -> None:
self.name = None
self.family_name = None
self.capabilities = None
+ self.batch_support_end_of_life = None
class SupportedSkusResult(_serialization.Model):
@@ -5040,6 +5233,67 @@ def __init__(
self.v_tpm_enabled = v_tpm_enabled
+class UpgradePolicy(_serialization.Model):
+ """Describes an upgrade policy - automatic, manual, or rolling.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control
+ the application of updates to virtual machines in the scale set. You do this by using the
+ manualUpgrade action.:code:`
`:code:`
` **Automatic** - All virtual machines in the
+ scale set are automatically updated at the same time.:code:`
`:code:`
` **Rolling** -
+ Scale set performs updates in batches with an optional pause time in between. Required. Known
+ values are: "automatic", "manual", and "rolling".
+ :vartype mode: str or ~azure.mgmt.batch.models.UpgradeMode
+ :ivar automatic_os_upgrade_policy: The configuration parameters used for performing automatic
+ OS upgrade.
+ :vartype automatic_os_upgrade_policy: ~azure.mgmt.batch.models.AutomaticOSUpgradePolicy
+ :ivar rolling_upgrade_policy: This property is only supported on Pools with the
+ virtualMachineConfiguration property.
+ :vartype rolling_upgrade_policy: ~azure.mgmt.batch.models.RollingUpgradePolicy
+ """
+
+ _validation = {
+ "mode": {"required": True},
+ }
+
+ _attribute_map = {
+ "mode": {"key": "mode", "type": "str"},
+ "automatic_os_upgrade_policy": {"key": "automaticOSUpgradePolicy", "type": "AutomaticOSUpgradePolicy"},
+ "rolling_upgrade_policy": {"key": "rollingUpgradePolicy", "type": "RollingUpgradePolicy"},
+ }
+
+ def __init__(
+ self,
+ *,
+ mode: Union[str, "_models.UpgradeMode"],
+ automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None,
+ rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None,
+ **kwargs: Any
+ ) -> None:
+ """
+ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control
+ the application of updates to virtual machines in the scale set. You do this by using the
+ manualUpgrade action.:code:`
`:code:`
` **Automatic** - All virtual machines in the
+ scale set are automatically updated at the same time.:code:`
`:code:`
` **Rolling** -
+ Scale set performs updates in batches with an optional pause time in between. Required. Known
+ values are: "automatic", "manual", and "rolling".
+ :paramtype mode: str or ~azure.mgmt.batch.models.UpgradeMode
+ :keyword automatic_os_upgrade_policy: The configuration parameters used for performing
+ automatic OS upgrade.
+ :paramtype automatic_os_upgrade_policy: ~azure.mgmt.batch.models.AutomaticOSUpgradePolicy
+ :keyword rolling_upgrade_policy: This property is only supported on Pools with the
+ virtualMachineConfiguration property.
+ :paramtype rolling_upgrade_policy: ~azure.mgmt.batch.models.RollingUpgradePolicy
+ """
+ super().__init__(**kwargs)
+ self.mode = mode
+ self.automatic_os_upgrade_policy = automatic_os_upgrade_policy
+ self.rolling_upgrade_policy = rolling_upgrade_policy
+
+
class UserAccount(_serialization.Model):
"""Properties used to create a user on an Azure Batch node.
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 6d578ddb094f..46d90747a2c9 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
@@ -43,7 +43,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -82,7 +82,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -118,7 +118,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -154,7 +154,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -198,7 +198,7 @@ def build_list_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 4ff3d689c7d1..0b9b9a22d6c3 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
@@ -48,7 +48,7 @@ def build_activate_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -95,7 +95,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -142,7 +142,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -186,7 +186,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -231,7 +231,7 @@ def build_list_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 b401626cd7bf..5a153240ee4c 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
@@ -45,7 +45,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -81,7 +81,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -117,7 +117,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -148,7 +148,7 @@ def build_get_request(resource_group_name: str, account_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -179,7 +179,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -203,7 +203,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -233,7 +233,7 @@ def build_synchronize_auto_storage_keys_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -266,7 +266,7 @@ def build_regenerate_key_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -302,7 +302,7 @@ def build_get_keys_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -335,7 +335,7 @@ def build_list_detectors_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -368,7 +368,7 @@ def build_get_detector_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -402,7 +402,7 @@ def build_list_outbound_network_dependencies_endpoints_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 a104555a502b..1fe0c5d35090 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
@@ -52,7 +52,7 @@ def build_list_by_batch_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -98,7 +98,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -147,7 +147,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -188,7 +188,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -224,7 +224,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -260,7 +260,7 @@ def build_cancel_deletion_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 a73662ad3e25..b1e025f03209 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
@@ -41,7 +41,7 @@ def build_get_quotas_request(location_name: str, subscription_id: str, **kwargs:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -75,7 +75,7 @@ def build_list_supported_virtual_machine_skus_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -114,7 +114,7 @@ def build_list_supported_cloud_service_skus_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -146,7 +146,7 @@ def build_check_name_availability_request(location_name: str, subscription_id: s
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
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 d79da83f5129..1ee446d2329b 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
@@ -40,7 +40,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 4bf44651170b..367ed9be029a 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
@@ -52,7 +52,7 @@ def build_list_by_batch_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -98,7 +98,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -147,7 +147,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -188,7 +188,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -224,7 +224,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -260,7 +260,7 @@ def build_disable_auto_scale_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -296,7 +296,7 @@ def build_stop_resize_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 8506b9d1eb63..a7ba1f57fbbb 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
@@ -50,7 +50,7 @@ def build_list_by_batch_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -89,7 +89,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -136,7 +136,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -186,7 +186,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 0f26eb39e7a9..fb3531096de6 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
@@ -47,7 +47,7 @@ def build_list_by_batch_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -82,7 +82,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_create.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_create.py
index d54cdbfb801f..665b0d1fce99 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_create.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_create.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_delete.py
index 5c478aa65b20..5439cb19777d 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_delete.py
@@ -36,6 +36,6 @@ def main():
)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_get.py
index b8cf4eb1bd6c..3ac290349d86 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_list.py
index eb12c04463ad..224c4b36ae05 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_activate.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_activate.py
index 060054a03e7e..5e5a7fbab8fa 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_activate.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_activate.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_create.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_create.py
index d7e8b3058e37..f4f335d12895 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_create.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_create.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_delete.py
index 61dc78d485cc..1af5d5210a35 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_delete.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_get.py
index 4c3e27877a8b..69edf7dc8eb3 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_list.py
index 0ebfdde78ca2..24d07c502faa 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_package_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_package_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/application_update.py b/sdk/batch/azure-mgmt-batch/generated_samples/application_update.py
index 8d8273321c8b..fd5b2a6f08a6 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/application_update.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/application_update.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_byos.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_byos.py
index 8ed506b26715..4dd016bd3a4d 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_byos.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_byos.py
@@ -49,6 +49,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_default.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_default.py
index 73b6abc9a912..cf091e901d36 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_default.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_default.py
@@ -44,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_system_assigned_identity.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_system_assigned_identity.py
index 072ad44d07b0..9ac89ff05686 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_system_assigned_identity.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_system_assigned_identity.py
@@ -45,6 +45,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_user_assigned_identity.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_user_assigned_identity.py
index 2f1a1d0de4e3..5a1c5b366a7f 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_user_assigned_identity.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_create_user_assigned_identity.py
@@ -50,6 +50,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_delete.py
index 2fcb5ef76bb9..e8f4c0185650 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_delete.py
@@ -35,6 +35,6 @@ def main():
).result()
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get.py
index 7c257dbf4fe6..60ba05ebbc0a 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get_keys.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get_keys.py
index 899126724abc..e05addae2840 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get_keys.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_get_keys.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list.py
index fef42f51eafd..2756f73441b6 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list.py
@@ -34,6 +34,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_by_resource_group.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_by_resource_group.py
index 44dda48a27ee..7a77ae639e8d 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_by_resource_group.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_by_resource_group.py
@@ -36,6 +36,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_outbound_network_dependencies_endpoints.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_outbound_network_dependencies_endpoints.py
index afa90226afa6..d4d98d0de887 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_outbound_network_dependencies_endpoints.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_list_outbound_network_dependencies_endpoints.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_regenerate_key.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_regenerate_key.py
index 8c08a5dc5944..692b58bba6e5 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_regenerate_key.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_regenerate_key.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_synchronize_auto_storage_keys.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_synchronize_auto_storage_keys.py
index 17295515cbc4..843fa2dc651b 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_synchronize_auto_storage_keys.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_synchronize_auto_storage_keys.py
@@ -35,6 +35,6 @@ def main():
)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_update.py b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_update.py
index 1989c07d5e33..8c131a724592 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_update.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/batch_account_update.py
@@ -43,6 +43,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_cancel_deletion.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_cancel_deletion.py
index d514702aab17..242f0ab57a58 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_cancel_deletion.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_cancel_deletion.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_full.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_full.py
index 7bc97ba549fc..ff3e26a6bab5 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_full.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_full.py
@@ -46,6 +46,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal.py
index b752b669d2d8..09e22392f50d 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal_cer.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal_cer.py
index f6cd3a919b99..8d748613d985 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal_cer.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_create_minimal_cer.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_delete.py
index fe3caa9a1a5b..92d0c2d8a62f 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get.py
index 50e2e59c5e85..f51586e006b3 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get_with_deletion_error.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get_with_deletion_error.py
index ca56ff8e92e7..9748611630e0 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get_with_deletion_error.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_get_with_deletion_error.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list.py
index 91cce9a58e6b..3f7eab54d6ea 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list_with_filter.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list_with_filter.py
index fa9ffa29ad1c..6e49caf9325b 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list_with_filter.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_list_with_filter.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_update.py b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_update.py
index 49917d7fabbd..a60e52f84130 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/certificate_update.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/certificate_update.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/detector_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/detector_get.py
index 5c3f57f3703f..ac0288bc9761 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/detector_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/detector_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/detector_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/detector_list.py
index a33e6c62e8ed..36723999e116 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/detector_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/detector_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_already_exists.py b/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_already_exists.py
index 1489c65e21c3..418e81bff689 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_already_exists.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_already_exists.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_available.py b/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_available.py
index bca2daa02dcf..917ad6bc303c 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_available.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/location_check_name_availability_available.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/location_get_quotas.py b/sdk/batch/azure-mgmt-batch/generated_samples/location_get_quotas.py
index 1165085a5d0d..8d705ae0a12b 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/location_get_quotas.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/location_get_quotas.py
@@ -35,6 +35,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/location_list_cloud_service_skus.py b/sdk/batch/azure-mgmt-batch/generated_samples/location_list_cloud_service_skus.py
index 9285e325c191..e581435cb918 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/location_list_cloud_service_skus.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/location_list_cloud_service_skus.py
@@ -36,6 +36,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/location_list_virtual_machine_skus.py b/sdk/batch/azure-mgmt-batch/generated_samples/location_list_virtual_machine_skus.py
index 6a3f5a475a5c..6f0f68b01ec6 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/location_list_virtual_machine_skus.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/location_list_virtual_machine_skus.py
@@ -36,6 +36,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/operations_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/operations_list.py
index 3374f0f42fdf..e4a1112ea21b 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/operations_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/operations_list.py
@@ -34,6 +34,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_accelerated_networking.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_accelerated_networking.py
index 0c14c347a14f..4b899c8244a2 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_accelerated_networking.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_accelerated_networking.py
@@ -58,6 +58,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_cloud_service_configuration.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_cloud_service_configuration.py
index 9f4c30ec257f..8e2c4e9d8720 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_cloud_service_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_cloud_service_configuration.py
@@ -105,6 +105,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_cloud_service_configuration.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_cloud_service_configuration.py
index 224c4f334961..1c54bd4a0dc7 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_cloud_service_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_cloud_service_configuration.py
@@ -44,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_virtual_machine_configuration.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_virtual_machine_configuration.py
index bced5b354648..dcbffc3bf0b7 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_virtual_machine_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_minimal_virtual_machine_configuration.py
@@ -54,6 +54,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_no_public_ip_addresses.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_no_public_ip_addresses.py
index 0b6f6497a4c6..706c3e68e239 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_no_public_ip_addresses.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_no_public_ip_addresses.py
@@ -54,6 +54,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_public_ips.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_public_ips.py
index a329af5ecc3a..38f1f654be12 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_public_ips.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_public_ips.py
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_resource_tags.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_resource_tags.py
index 556f3b71489b..e226d8e2c21e 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_resource_tags.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_resource_tags.py
@@ -55,6 +55,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_security_profile.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_security_profile.py
index 68d83e57cecc..cd10fe3bcfc3 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_security_profile.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_security_profile.py
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_shared_image_gallery.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_shared_image_gallery.py
index 1330051963f9..4db8bb43b292 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_shared_image_gallery.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_shared_image_gallery.py
@@ -50,6 +50,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_upgrade_policy.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_upgrade_policy.py
new file mode 100644
index 000000000000..6150704fcd56
--- /dev/null
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_upgrade_policy.py
@@ -0,0 +1,79 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+from azure.mgmt.batch import BatchManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-batch
+# USAGE
+ python pool_create_upgrade_policy.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = BatchManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="subid",
+ )
+
+ response = client.pool.create(
+ resource_group_name="default-azurebatch-japaneast",
+ account_name="sampleacct",
+ pool_name="testpool",
+ parameters={
+ "properties": {
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "offer": "WindowsServer",
+ "publisher": "MicrosoftWindowsServer",
+ "sku": "2019-datacenter-smalldisk",
+ "version": "latest",
+ },
+ "nodeAgentSkuId": "batch.node.windows amd64",
+ "nodePlacementConfiguration": {"policy": "Zonal"},
+ "windowsConfiguration": {"enableAutomaticUpdates": False},
+ }
+ },
+ "scaleSettings": {"fixedScale": {"targetDedicatedNodes": 2, "targetLowPriorityNodes": 0}},
+ "upgradePolicy": {
+ "automaticOSUpgradePolicy": {
+ "disableAutomaticRollback": True,
+ "enableAutomaticOSUpgrade": True,
+ "osRollingUpgradeDeferral": True,
+ "useRollingUpgradePolicy": True,
+ },
+ "mode": "automatic",
+ "rollingUpgradePolicy": {
+ "enableCrossZoneUpgrade": True,
+ "maxBatchInstancePercent": 20,
+ "maxUnhealthyInstancePercent": 20,
+ "maxUnhealthyUpgradedInstancePercent": 20,
+ "pauseTimeBetweenBatches": "PT0S",
+ "prioritizeUnhealthyInstances": False,
+ "rollbackFailedInstancesOnPolicyBreach": False,
+ },
+ },
+ "vmSize": "Standard_d4s_v3",
+ }
+ },
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_user_assigned_identities.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_user_assigned_identities.py
index b897f6a1aef4..9cf6d0ed7743 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_user_assigned_identities.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_user_assigned_identities.py
@@ -61,6 +61,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration.py
index b77a7df37400..04ae86f7153d 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration.py
@@ -90,6 +90,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_extensions.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_extensions.py
index 8f2ed9b2018e..68e732abe6ab 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_extensions.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_extensions.py
@@ -68,6 +68,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_managed_os_disk.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_managed_os_disk.py
index 5227a0cecab1..644c4968d467 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_managed_os_disk.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_managed_os_disk.py
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_service_artifact_reference.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_service_artifact_reference.py
index 48edc7feb951..6d94cf6ee8d9 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_service_artifact_reference.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_create_virtual_machine_configuration_service_artifact_reference.py
@@ -51,6 +51,7 @@ def main():
}
},
"scaleSettings": {"fixedScale": {"targetDedicatedNodes": 2, "targetLowPriorityNodes": 0}},
+ "upgradePolicy": {"automaticOSUpgradePolicy": {"enableAutomaticOSUpgrade": True}, "mode": "automatic"},
"vmSize": "Standard_d4s_v3",
}
},
@@ -58,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_delete.py
index 4cad717a0202..fc9c474e5b0f 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_disable_auto_scale.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_disable_auto_scale.py
index 1a5bd21c4e14..889ec9a343f6 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_disable_auto_scale.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_disable_auto_scale.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get.py
index 0f30c966820d..169799fd829e 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_accelerated_networking.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_accelerated_networking.py
index adf117c89e0c..c1d8e591ef14 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_accelerated_networking.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_accelerated_networking.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_security_profile.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_security_profile.py
index 771d636ff748..68d28d7dbf08 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_security_profile.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_security_profile.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_upgrade_policy.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_upgrade_policy.py
new file mode 100644
index 000000000000..6b6bc2470f68
--- /dev/null
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_upgrade_policy.py
@@ -0,0 +1,42 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+from azure.mgmt.batch import BatchManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-batch
+# USAGE
+ python pool_get_upgrade_policy.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = BatchManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="subid",
+ )
+
+ response = client.pool.get(
+ resource_group_name="default-azurebatch-japaneast",
+ account_name="sampleacct",
+ pool_name="testpool",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_extensions.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_extensions.py
index c1e4fc316935..98b19ba32fe2 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_extensions.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_extensions.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_manged_os_disk.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_manged_os_disk.py
index 02b9b9062e40..74d7659f8c64 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_manged_os_disk.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_manged_os_disk.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_service_artifact_reference.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_service_artifact_reference.py
index 0369150a7cbb..e756a594298b 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_service_artifact_reference.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_get_virtual_machine_configuration_service_artifact_reference.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_list.py
index 4c840a5b21b6..e755acb83af4 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_list_with_filter.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_list_with_filter.py
index 61e179e65518..18faafab5d5a 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_list_with_filter.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_list_with_filter.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_stop_resize.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_stop_resize.py
index 0594f53e35cf..6a626f7334cc 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_stop_resize.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_stop_resize.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_enable_auto_scale.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_enable_auto_scale.py
index 0672dfc37771..4122d3389936 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_enable_auto_scale.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_enable_auto_scale.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_other_properties.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_other_properties.py
index 6e15f7832a97..e7d4260dce52 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_other_properties.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_other_properties.py
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_remove_start_task.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_remove_start_task.py
index d2570b49f4c9..f7377c967cb7 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_remove_start_task.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_remove_start_task.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_resize_pool.py b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_resize_pool.py
index 56a82bc07a4c..5bfa7d94db16 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_resize_pool.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/pool_update_resize_pool.py
@@ -49,6 +49,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_create.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_create.py
index 7b3ab646bfed..ba904f442a24 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_create.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_create.py
@@ -49,6 +49,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_get.py
index 6a535e074137..1fcce4a38c7c 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_batch_account_get.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_delete.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_delete.py
index e7dc6993f6c6..f6507b31639c 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_delete.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_get.py
index 059d2e19d646..56d92ffae8a7 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_update.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_update.py
index 5e9a6f8fd919..7614a5f7cd53 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_update.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connection_update.py
@@ -45,6 +45,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connections_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connections_list.py
index 1f77ccb1f364..efb8dca0bdf0 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connections_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_endpoint_connections_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resource_get.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resource_get.py
index ec76d886be53..bc2f64c1afa8 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resource_get.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resource_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json
if __name__ == "__main__":
main()
diff --git a/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resources_list.py b/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resources_list.py
index af9c850f0c6e..6b492f7eef92 100644
--- a/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resources_list.py
+++ b/sdk/batch/azure-mgmt-batch/generated_samples/private_link_resources_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json
+# x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json
if __name__ == "__main__":
main()