Ip Groups - Create Or Update

Creates or updates an ipGroups in a specified resource group.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}?api-version=2024-03-01

URI Parameters

Name In Required Type Description
ipGroupsName
path True

string

The name of the ipGroups.

resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client API version.

Request Body

Name Type Description
id

string

Resource ID.

location

string

Resource location.

properties.ipAddresses

string[]

IpAddresses/IpAddressPrefixes in the IpGroups resource.

tags

object

Resource tags.

Responses

Name Type Description
200 OK

IpGroup

Request successful. The operation returns the resulting ipGroups resource.

201 Created

IpGroup

Create successful. The operation returns the resulting ipGroups resource.

Other Status Codes

Error

Unexpected error.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

CreateOrUpdate_IpGroups

Sample request

PUT https://management.azure.com/subscriptions/subId/resourceGroups/myResourceGroup/providers/Microsoft.Network/ipGroups/ipGroups1?api-version=2024-03-01

{
  "tags": {
    "key1": "value1"
  },
  "location": "West US",
  "properties": {
    "ipAddresses": [
      "13.64.39.16/32",
      "40.74.146.80/31",
      "40.74.147.32/28"
    ]
  }
}

Sample response

{
  "name": "ipGroups1",
  "id": "/subscriptions/subId/providers/Microsoft.Network/resourceGroup/myResourceGroup/ipGroups/ipGroups1",
  "type": "Microsoft.Network/ipGroups",
  "location": "westcentralus",
  "properties": {
    "provisioningState": "Succeeded",
    "ipAddresses": [
      "13.64.39.16/32",
      "40.74.146.80/31",
      "40.74.147.32/28"
    ],
    "firewalls": [
      {
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall"
      }
    ],
    "firewallPolicies": []
  },
  "etag": "w/\\00000000-0000-0000-0000-000000000000\\"
}
{
  "name": "ipGroups1",
  "id": "/subscriptions/subId/providers/Microsoft.Network/resourceGroup/myResourceGroup/ipGroups/ipGroups1",
  "type": "Microsoft.Network/ipGroups",
  "location": "westcentralus",
  "properties": {
    "provisioningState": "Succeeded",
    "ipAddresses": [
      "13.64.39.16/32",
      "40.74.146.80/31",
      "40.74.147.32/28"
    ],
    "firewalls": [
      {
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall"
      }
    ],
    "firewallPolicies": []
  },
  "etag": "w/\\00000000-0000-0000-0000-000000000000\\"
}

Definitions

Name Description
Error

Common error representation.

ErrorDetails

Common error details representation.

IpGroup

The IpGroups resource information.

ProvisioningState

The current provisioning state.

SubResource

Reference to another subresource.

Error

Common error representation.

Name Type Description
code

string

Error code.

details

ErrorDetails[]

Error details.

innerError

string

Inner error message.

message

string

Error message.

target

string

Error target.

ErrorDetails

Common error details representation.

Name Type Description
code

string

Error code.

message

string

Error message.

target

string

Error target.

IpGroup

The IpGroups resource information.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

location

string

Resource location.

name

string

Resource name.

properties.firewallPolicies

SubResource[]

List of references to Firewall Policies resources that this IpGroups is associated with.

properties.firewalls

SubResource[]

List of references to Firewall resources that this IpGroups is associated with.

properties.ipAddresses

string[]

IpAddresses/IpAddressPrefixes in the IpGroups resource.

properties.provisioningState

ProvisioningState

The provisioning state of the IpGroups resource.

tags

object

Resource tags.

type

string

Resource type.

ProvisioningState

The current provisioning state.

Name Type Description
Deleting

string

Failed

string

Succeeded

string

Updating

string

SubResource

Reference to another subresource.

Name Type Description
id

string

Resource ID.