Skip to content

Commit 7bb51ec

Browse files
committed
acrolynx
1 parent 724357c commit 7bb51ec

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/azure-resource-manager/bicep/bicep-functions-resource.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions).
501501
| providerNamespace | Yes | string | The resource provider namespace for the resource type to check for zone support. |
502502
| resourceType | Yes | string | The resource type to check for zone support. |
503503
| location | Yes | string | The region to check for zone support. |
504-
| numberOfZones | No | integer | The number of logical zones to return. The default is 1. The number must be a positive integer from 1 to 3. Use 1 for single-zoned resources. For multi-zoned resources, the value must be less than or equal to the number of supported zones. |
504+
| numberOfZones | No | integer | The number of logical zones to return. The default is 1. The number must be a positive integer from 1 to 3. Use 1 for single-zoned resources. For multi-zoned resources, the value must be less than or equal to the number of supported zones. |
505505
| offset | No | integer | The offset from the starting logical zone. The function returns an error if offset plus numberOfZones exceeds the number of supported zones. |
506506

507507
### Return value
@@ -533,9 +533,9 @@ When the resource type or region doesn't support zones, an empty array is return
533533

534534
### Remarks
535535

536-
There are different categories for Azure Availability Zones - zonal and zone-redundant. The `pickZones` function can be used to return an availability zone for a zonal resource. For zone redundant services (ZRS), the function returns an empty array. Zonal resources typically have a `zones` property at the top level of the resource definition. To determine the category of support for availability zones, see [Azure services that support availability zones](../../reliability/availability-zones-service-support.md).
536+
There are different categories for Azure Availability Zones - zonal and zone-redundant. The `pickZones` function can be used to return an availability zone for a zonal resource. For zone redundant services (ZRS), the function returns an empty array. Zonal resources typically have a `zones` property at the top level of the resource definition. To determine the category of support for availability zones, see [Azure services that support availability zones](../../reliability/availability-zones-service-support.md).
537537

538-
To determine if a given Azure region or location supports availability zones, call the `pickZones` function with a zonal resource type, such as `Microsoft.Network/publicIPAddresses`. If the response isn't empty, the region supports availability zones.
538+
To determine if a given Azure region or location supports availability zones, call the `pickZones` function with a zonal resource type, such as `Microsoft.Network/publicIPAddresses`. If the response isn't empty, the region supports availability zones.
539539

540540
### pickZones example
541541

@@ -756,7 +756,7 @@ resource policyAssignment 'Microsoft.Authorization/policyAssignments@2024-04-01'
756756

757757
`toLogicalZone(subscriptionId, location, physicalZone)`
758758

759-
Returns the logical availability zone (e.g., `1`, `2`, or `3`) corresponding to a physical availability zone for a specified subscription in a given Azure region.
759+
Returns the logical availability zone (for example, `1`, `2`, or `3`) corresponding to a physical availability zone for a specified subscription in a given Azure region.
760760

761761
Namespace: [az](bicep-functions.md#namespaces-for-functions)
762762

@@ -770,15 +770,15 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions)
770770

771771
### Return value
772772

773-
A string representing the logical availability zone (e.g., `1`, `2`, or `3`) that corresponds to the specified physical zone in the given region and subscription. If the physical zone is invalid or not supported, an empty string (`''`) is returned.
773+
A string representing the logical availability zone (for example, `1`, `2`, or `3`) that corresponds to the specified physical zone in the given region and subscription. If the physical zone is invalid or not supported, an empty string (`''`) is returned.
774774

775775
### Remarks
776776

777777
* The `toLogicalZone` function retrieves the logical zone mapping based on the subscription’s zone configuration in the specified region.
778-
* Logical zones are standardized identifiers (e.g., `1`, `2`, `3`) used in resource configurations to ensure consistent zone assignments across Azure services.
778+
* Logical zones are standardized identifiers (for example, `1`, `2`, `3`) used in resource configurations to ensure consistent zone assignments across Azure services.
779779
* Physical zone identifiers are region-specific and may vary between subscriptions. Use the [`toPhysicalZone`](#tophysicalzone) function to reverse this mapping.
780780
* The function requires that the region supports availability zones. For a list of supported regions, see [Azure services that support availability zones](../../reliability/availability-zones-service-support.md).
781-
* If the physical zone does not exist or is not mapped for the subscription, the function returns an empty string.
781+
* If the physical zone doesn't exist or isn't mapped for the subscription, the function returns an empty string.
782782
* This function is useful for aligning physical zone deployments with logical zone configurations in templates, especially for cross-subscription or multi-region scenarios.
783783

784784
### Examples
@@ -829,7 +829,7 @@ Expected output:
829829

830830
`toLogicalZones(subscriptionId, location, physicalZones)`
831831

832-
Returns the logical availability zones (e.g., `1`, `2`, or `3`) corresponding to physical availability zones for a specified subscription in a given Azure region. To convert a single physical zone, use the [`toLogicalZone`](#tologicalzone) function.
832+
Returns the logical availability zones (for example, `1`, `2`, or `3`) corresponding to physical availability zones for a specified subscription in a given Azure region. To convert a single physical zone, use the [`toLogicalZone`](#tologicalzone) function.
833833

834834
Namespace: [az](bicep-functions.md#namespaces-for-functions)
835835

@@ -843,7 +843,7 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions)
843843

844844
### Return value
845845

846-
An array of logical zone names corresponding to the provided physical zones, (e.g., `1`, `2`, or `3`). If a physical zone is invalid or not supported, an empty string (`''`) is returned.
846+
An array of logical zone names corresponding to the provided physical zones, (for example, `1`, `2`, or `3`). If a physical zone is invalid or not supported, an empty string (`''`) is returned.
847847

848848
### Remarks
849849

@@ -870,7 +870,7 @@ Expected output:
870870

871871
`toPhysicalZone(subscriptionId, location, logicalZone)`
872872

873-
Returns the physical availability zone identifier (e.g., a data center-specific identifier like `westus2-az1`) corresponding to a logical availability zone for a specified subscription in a given Azure region.
873+
Returns the physical availability zone identifier (for example, a data center-specific identifier like `westus2-az1`) corresponding to a logical availability zone for a specified subscription in a given Azure region.
874874

875875
Namespace: [az](bicep-functions.md#namespaces-for-functions)
876876

@@ -880,19 +880,19 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions)
880880
|:--- |:--- |:--- |:--- |
881881
| subscriptionId | Yes | string | The ID of the Azure subscription (for example, `12345678-1234-1234-1234-1234567890ab`). |
882882
| location | Yes | string | The Azure region that supports availability zones (for example, `westus2`). |
883-
| logicalZone | Yes | string | The logical availability zone (e.g., `1`, `2`, or `3`). |
883+
| logicalZone | Yes | string | The logical availability zone (for example, `1`, `2`, or `3`). |
884884

885885
### Return value
886886

887-
A string representing the physical availability zone identifier (e.g., `westus2-az1`) that corresponds to the specified logical zone in the given region and subscription. If the logical zone is invalid or not supported, an empty string (`''`) is returned.
887+
A string representing the physical availability zone identifier (for example, `westus2-az1`) that corresponds to the specified logical zone in the given region and subscription. If the logical zone is invalid or not supported, an empty string (`''`) is returned.
888888

889889
### Remarks
890890

891891
* The `toPhysicalZone` function retrieves the physical zone mapping based on the subscription’s zone configuration in the specified region.
892-
* Physical zones are data center-specific identifiers that may vary between subscriptions, while logical zones (e.g., `1`, `2`, `3`) are standardized for resource configurations.
892+
* Physical zones are data center-specific identifiers that may vary between subscriptions, while logical zones (for example, `1`, `2`, `3`) are standardized for resource configurations.
893893
* Use the `toLogicalZone` function to reverse this mapping, converting a physical zone to its logical equivalent.
894894
* The function requires that the region supports availability zones. For a list of supported regions, see [Azure services that support availability zones](../../reliability/availability-zones-service-support.md).
895-
* If the logical zone does not exist or is not mapped for the subscription, the function returns an empty string.
895+
* If the logical zone doesn't exist or isn't mapped for the subscription, the function returns an empty string.
896896
* This function is useful for scenarios requiring physical zone identifiers, such as logging, auditing, or cross-subscription zone alignment in multi-region deployments.
897897

898898
### Examples
@@ -943,7 +943,7 @@ Expected output:
943943

944944
`toPhysicalZones(subscriptionId, location, logicalZones)`
945945

946-
Returns the physical availability zone identifiers (e.g., a data center-specific identifier like `westus2-az1`) corresponding to logical availability zones for a specified subscription in a given Azure region. To convert a single logical zone, use the [`toPhysicalZone`](#tophysicalzone) function.
946+
Returns the physical availability zone identifiers (for example, a data center-specific identifier like `westus2-az1`) corresponding to logical availability zones for a specified subscription in a given Azure region. To convert a single logical zone, use the [`toPhysicalZone`](#tophysicalzone) function.
947947

948948
Namespace: [az](bicep-functions.md#namespaces-for-functions)
949949

@@ -953,11 +953,11 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions)
953953
|:--- |:--- |:--- |:--- |
954954
| subscriptionId | Yes | string | The ID of the Azure subscription (for example, `12345678-1234-1234-1234-1234567890ab`). |
955955
| location | Yes | string | The Azure region that supports availability zones (for example, `westus2`). |
956-
| logicalZone | Yes | string[] | The logical availability zones (e.g., `1`, `2`, or `3`) to onvert to physical zones. |
956+
| logicalZone | Yes | string[] | The logical availability zones (for example, `1`, `2`, or `3`) to convert to physical zones. |
957957

958958
### Return value
959959

960-
An array of physical zone names (e.g., `westus2-az1`, `westus2-az2` )corresponding to the provided logical zones. If a logical zone is invalid or not supported, an empty string (`''`) is returned.
960+
An array of physical zone names (for example, `westus2-az1`, `westus2-az2` ) corresponding to the provided logical zones. If a logical zone is invalid or not supported, an empty string (`''`) is returned.
961961

962962
### Remarks
963963

0 commit comments

Comments
 (0)