Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Public] Adding support for Developer Bastion #25132

Merged
merged 3 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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