Skip to content

Commit

Permalink
[Public] Adding support for Developer Bastion (#25132)
Browse files Browse the repository at this point in the history
* Public Preview Developer Bastion

* Public Preview Developer Bastion

* Bastion Developer Sku
  • Loading branch information
anvrao1 authored Aug 14, 2023
1 parent af6f9b1 commit 5bfc0b0
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"x-ms-examples": {
"Delete Bastion Host": {
"$ref": "./examples/BastionHostDelete.json"
},
"Delete Developer Bastion Host": {
"$ref": "./examples/BastionHostDeveloperDelete.json"
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -119,6 +122,9 @@
"x-ms-examples": {
"Get Bastion Host": {
"$ref": "./examples/BastionHostGet.json"
},
"Get Developer Bastion Host": {
"$ref": "./examples/BastionHostDeveloperGet.json"
}
}
},
Expand Down Expand Up @@ -174,6 +180,9 @@
"x-ms-examples": {
"Create Bastion Host": {
"$ref": "./examples/BastionHostPut.json"
},
"Create Developer Bastion Host": {
"$ref": "./examples/BastionHostDeveloperPut.json"
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -595,6 +604,15 @@
},
"type": "object"
},
"IPRule": {
"properties": {
"addressPrefix": {
"type": "string",
"description": "Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed."
}
},
"type": "object"
},
"BastionHostIPConfigurationPropertiesFormat": {
"properties": {
"subnet": {
Expand Down Expand Up @@ -663,6 +681,22 @@
"type": "string",
"description": "FQDN for the endpoint on which bastion host is accessible."
},
"virtualNetwork": {
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference to an existing virtual network required for Developer Bastion Host only."
},
"networkAcls": {
"properties": {
"ipRules": {
"type": "array",
"items": {
"description": "IP rule with specific IP or IP range in CIDR format.",
"$ref": "#/definitions/IPRule"
},
"description": "Sets the IP ACL rules for Developer Bastion Host."
}
}
},
"provisioningState": {
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2023-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg2",
"bastionHostName": "bastionhostdeveloper"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/operationResults/{operationId}?api-version={api-version}"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2023-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"bastionHostName": "bastionhostdeveloper'"
},
"responses": {
"200": {
"body": {
"name": "bastionhostdeveloper'",
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/bastionHosts/bastionhostdeveloper'",
"type": "Microsoft.Network/bastionHosts",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "West US",
"sku": {
"name": "Developer"
},
"properties": {
"provisioningState": "Succeeded",
"virtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"networkAcls": {
"ipRules": [
{
"addressPrefix": "1.1.1.1/16"
}
]
},
"dnsName": "omnibrain.uswest.bastionglobal.azure.com",
"ipConfigurations": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"parameters": {
"api-version": "2023-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg2",
"bastionHostName": "bastionhostdeveloper",
"sku": {
"name": "Developer"
},
"parameters": {
"properties": {
"virtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"networkAcls": {
"ipRules": [
{
"addressPrefix": "1.1.1.1/16"
}
]
},
"ipConfigurations": []
}
}
},
"responses": {
"200": {
"body": {
"name": "bastionhostdeveloper",
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/bastionHosts/bastionhostdeveloper'",
"type": "Microsoft.Network/bastionHosts",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "West US",
"sku": {
"name": "Developer"
},
"properties": {
"provisioningState": "Succeeded",
"dnsName": "omnibrain.uswest.bastionglobal.azure.com",
"virtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"networkAcls": {
"ipRules": [
{
"addressPrefix": "1.1.1.1/16"
}
]
},
"ipConfigurations": []
}
}
},
"201": {
"body": {
"name": "bastionhostdeveloper'",
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/bastionHosts/bastionhostdeveloper'",
"type": "Microsoft.Network/bastionHosts",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "West US",
"sku": {
"name": "Developer"
},
"properties": {
"provisioningState": "Succeeded",
"dnsName": "omnibrain.uswest.bastionglobal.azure.com",
"virtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"networkAcls": {
"ipRules": [
{
"addressPrefix": "1.1.1.1/16"
}
]
},
"ipConfigurations": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@
}
]
}
},
{
"name": "bastionhostdeveloper'",
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/bastionHosts/bastionhostdeveloper'",
"type": "Microsoft.Network/bastionHosts",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "West US",
"sku": {
"name": "Developer"
},
"properties": {
"provisioningState": "Succeeded",
"virtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"networkAcls": {
"ipRules": [
{
"addressPrefix": "1.1.1.1/16"
}
]
},
"dnsName": "omnibrain.uswest.bastionglobal.azure.com",
"ipConfigurations": []
}
}
]
}
Expand Down

0 comments on commit 5bfc0b0

Please sign in to comment.