Skip to content

Commit

Permalink
Adding zones, example and renaming frontendIPConfigurations to fronte…
Browse files Browse the repository at this point in the history
…ndIpConfigurations, LoadBalancerFrontendIPConfiguration to LoadBalancerFrontendIpConfiguration, LoadBalancerFrontendIPConfigurationProperties to LoadBalancerFrontendIpConfigurationProperties
  • Loading branch information
ashvermamsft committed Oct 21, 2022
1 parent 5594dbe commit b50a71e
Show file tree
Hide file tree
Showing 10 changed files with 211 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@
}
}
},
"LoadBalancerFrontendIPConfigurationProperties": {
"LoadBalancerFrontendIpConfigurationProperties": {
"description": "Describes a cloud service IP Configuration",
"type": "object",
"properties": {
Expand All @@ -2068,7 +2068,7 @@
}
}
},
"LoadBalancerFrontendIPConfiguration": {
"LoadBalancerFrontendIpConfiguration": {
"description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.",
"type": "object",
"properties": {
Expand All @@ -2077,7 +2077,7 @@
"type": "string"
},
"properties": {
"$ref": "#/definitions/LoadBalancerFrontendIPConfigurationProperties",
"$ref": "#/definitions/LoadBalancerFrontendIpConfigurationProperties",
"description": "Properties of load balancer frontend ip configuration."
}
},
Expand All @@ -2090,19 +2090,19 @@
"description": "Describes the properties of the load balancer configuration.",
"type": "object",
"properties": {
"frontendIPConfigurations": {
"frontendIpConfigurations": {
"description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.",
"type": "array",
"items": {
"$ref": "#/definitions/LoadBalancerFrontendIPConfiguration"
"$ref": "#/definitions/LoadBalancerFrontendIpConfiguration"
},
"x-ms-identifiers": [
"name"
]
}
},
"required": [
"frontendIPConfigurations"
"frontendIpConfigurations"
]
},
"LoadBalancerConfiguration": {
Expand Down Expand Up @@ -2337,6 +2337,13 @@
},
"systemData": {
"$ref": "../../../common-types/v1/common.json#/definitions/SystemData"
},
"zones": {
"description": "List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.",
"type": "array",
"items": {
"type": "string"
}
}
},
"x-ms-azure-resource": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down Expand Up @@ -91,7 +91,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down Expand Up @@ -152,7 +152,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "ConstosoRG",
"cloudServiceName": "{cs-name}",
"api-version": "2022-09-04",
"parameters": {
"properties": {
"networkProfile": {
"loadBalancerConfigurations": [
{
"properties": {
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
"id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip"
}
},
"name": "contosofe"
}
]
},
"name": "contosolb"
}
]
},
"roleProfile": {
"roles": [
{
"sku": {
"name": "Standard_D1_v2",
"capacity": 1,
"tier": "Standard"
},
"name": "ContosoFrontend"
},
{
"sku": {
"name": "Standard_D1_v2",
"capacity": 1,
"tier": "Standard"
},
"name": "ContosoBackend"
}
]
},
"configuration": "{ServiceConfiguration}",
"packageUrl": "{PackageUrl}",
"upgradeMode": "Auto"
},
"location": "westus",
"zones": ["1"]
}
},
"responses": {
"200": {
"body": {
"name": "{cs-name}",
"id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}",
"type": "Microsoft.Compute/cloudServices",
"location": "westus",
"properties": {
"configuration": "{ServiceConfiguration}",
"packageUrl": "{PackageUrl}",
"upgradeMode": "Auto",
"roleProfile": {
"roles": [
{
"name": "ContosoFrontend",
"sku": {
"name": "Standard_D1_v2",
"tier": "Standard",
"capacity": 1
}
},
{
"name": "ContosoBackend",
"sku": {
"name": "Standard_D1_v2",
"tier": "Standard",
"capacity": 1
}
}
]
},
"osProfile": {
"secrets": []
},
"networkProfile": {
"loadBalancerConfigurations": [
{
"name": "contosolb",
"properties": {
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
"publicIPAddress": {
"id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip"
}
}
}
]
}
}
]
},
"provisioningState": "Updating",
"uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb"
},
"systemData": {
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedAt": "2020-01-01T17:18:19.1234567Z"
},
"zones": ["1"]
}
},
"201": {
"body": {
"name": "{cs-name}",
"id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}",
"type": "Microsoft.Compute/cloudServices",
"location": "westus",
"properties": {
"configuration": "{ServiceConfiguration}",
"packageUrl": "{PackageUrl}",
"upgradeMode": "Auto",
"roleProfile": {
"roles": [
{
"name": "ContosoFrontend",
"sku": {
"name": "Standard_D1_v2",
"tier": "Standard",
"capacity": 1
}
},
{
"name": "ContosoBackend",
"sku": {
"name": "Standard_D1_v2",
"tier": "Standard",
"capacity": 1
}
}
]
},
"osProfile": {
"secrets": []
},
"networkProfile": {
"loadBalancerConfigurations": [
{
"name": "contosolb",
"properties": {
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
"publicIPAddress": {
"id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip"
}
}
}
]
}
}
]
},
"provisioningState": "Creating",
"uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb"
},
"systemData": {
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedAt": "2020-01-01T17:18:19.1234567Z"
},
"zones": [ "1" ]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down Expand Up @@ -74,7 +74,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down Expand Up @@ -127,7 +127,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down Expand Up @@ -100,7 +100,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down Expand Up @@ -164,7 +164,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"loadBalancerConfigurations": [
{
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"properties": {
"publicIPAddress": {
Expand Down Expand Up @@ -90,7 +90,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down Expand Up @@ -161,7 +161,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
"name": "contosolb",
"properties": {
"frontendIPConfigurations": [
"frontendIpConfigurations": [
{
"name": "contosofe",
"properties": {
Expand Down

0 comments on commit b50a71e

Please sign in to comment.