Skip to content
Draft
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
2 changes: 1 addition & 1 deletion Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
: Manage Service Networking Resources

- [servicebus](/Commands/servicebus/readme.md)
: servicebus
: Manage Service Bus

- [sig](/Commands/sig/readme.md)
: Manage shared image gallery.
Expand Down
16 changes: 16 additions & 0 deletions Commands/servicebus/namespace/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ Create a service namespace. Once created, this namespace's resource manifest is
```bash
servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --sku Premium --mi-user-assigned /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName
```

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview -->

#### examples

- Create a Service Bus Namespace
```bash
servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags tag1=value1 tag2=value2 --sku Standard
```

- Creates a new namespace with Identity & Encryption Enabled
```bash
servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --sku Premium --mi-user-assigned /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName
```
11 changes: 11 additions & 0 deletions Commands/servicebus/namespace/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Delete an existing namespace. This operation also removes all associated resourc
```bash
servicebus namespace delete --resource-group myresourcegroup --name mynamespace
```

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview -->

#### examples

- Deletes the Service Bus Namespace
```bash
servicebus namespace delete --resource-group myresourcegroup --name mynamespace
```
4 changes: 4 additions & 0 deletions Commands/servicebus/namespace/_exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Check the give namespace name availability.
### [2022-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL2NoZWNrbmFtZWF2YWlsYWJpbGl0eQ==/2022-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.servicebus/checknameavailability 2022-10-01-preview -->

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL2NoZWNrbmFtZWF2YWlsYWJpbGl0eQ==/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.servicebus/checknameavailability 2023-01-01-preview -->
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/_failover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace failover_

GeoDR Failover

## Versions

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30vZmFpbG92ZXI=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{}/failover 2023-01-01-preview -->
16 changes: 16 additions & 0 deletions Commands/servicebus/namespace/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ List the available namespaces within a resource group.
```bash
servicebus namespace list
```

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXM=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces 2023-01-01-preview -->

#### examples

- List the Service Bus Namespaces under resourcegroup.
```bash
servicebus namespace list --resource-group myresourcegroup
```

- List the Service Bus Namespaces under subscription
```bash
servicebus namespace list
```
11 changes: 11 additions & 0 deletions Commands/servicebus/namespace/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get a description for the specified namespace.
```bash
servicebus namespace show --resource-group myresourcegroup --name mynamespace
```

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview -->

#### examples

- shows the Namespace details.
```bash
servicebus namespace show --resource-group myresourcegroup --name mynamespace
```
12 changes: 12 additions & 0 deletions Commands/servicebus/namespace/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ Update a service namespace. Once created, this namespace's resource manifest is
servicebus namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value
az servicebus namespace update --name mynamespace --resource-group myresourcegroup --sku Basic
```

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview -->

#### examples

- Updates a Service Bus Namespace
```bash
servicebus namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value
az servicebus namespace update --name mynamespace --resource-group myresourcegroup --sku Basic
```
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/identity/_assign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace identity assign_

Assign the user or system managed identities.

## Versions

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview identity -->
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/identity/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace identity remove_

Remove the user or system managed identities.

## Versions

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview identity -->
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/identity/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace identity show_

Show the details of managed identities.

## Versions

### [2023-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30=/2023-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{} 2023-01-01-preview identity -->
14 changes: 14 additions & 0 deletions Commands/servicebus/namespace/identity/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Group] _servicebus namespace identity_

Manage Identity

## Commands

- [assign](/Commands/servicebus/namespace/identity/_assign.md)
: Assign the user or system managed identities.

- [remove](/Commands/servicebus/namespace/identity/_remove.md)
: Remove the user or system managed identities.

- [show](/Commands/servicebus/namespace/identity/_show.md)
: Show the details of managed identities.
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/nsp/configuration/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace nsp configuration list_

List list of current NetworkSecurityPerimeterConfiguration for Namespace

## Versions

### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30vbmV0d29ya3NlY3VyaXR5cGVyaW1ldGVyY29uZmlndXJhdGlvbnM=/2025-05-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{}/networksecurityperimeterconfigurations 2025-05-01-preview -->
9 changes: 9 additions & 0 deletions Commands/servicebus/namespace/nsp/configuration/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _servicebus namespace nsp configuration show_

Get a NetworkSecurityPerimeterConfigurations resourceAssociationName

## Versions

### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlYnVzL25hbWVzcGFjZXMve30vbmV0d29ya3NlY3VyaXR5cGVyaW1ldGVyY29uZmlndXJhdGlvbnMve30=/2025-05-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicebus/namespaces/{}/networksecurityperimeterconfigurations/{} 2025-05-01-preview -->
11 changes: 11 additions & 0 deletions Commands/servicebus/namespace/nsp/configuration/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _servicebus namespace nsp configuration_

Manage Network Security Perimeter Configuration

## Commands

- [list](/Commands/servicebus/namespace/nsp/configuration/_list.md)
: List list of current NetworkSecurityPerimeterConfiguration for Namespace

- [show](/Commands/servicebus/namespace/nsp/configuration/_show.md)
: Get a NetworkSecurityPerimeterConfigurations resourceAssociationName
8 changes: 8 additions & 0 deletions Commands/servicebus/namespace/nsp/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _servicebus namespace nsp_

Manage Nsp

## Subgroups

- [configuration](/Commands/servicebus/namespace/nsp/configuration/readme.md)
: Manage Network Security Perimeter Configuration
11 changes: 10 additions & 1 deletion Commands/servicebus/namespace/readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# [Group] _servicebus namespace_

servicebus namespace
Manage Namespace

## Subgroups

- [authorization-rule](/Commands/servicebus/namespace/authorization-rule/readme.md)
: servicebus namespace authorization-rule

- [identity](/Commands/servicebus/namespace/identity/readme.md)
: Manage Identity

- [network-rule-set](/Commands/servicebus/namespace/network-rule-set/readme.md)
: servicebus namespace network-rule-set

- [nsp](/Commands/servicebus/namespace/nsp/readme.md)
: Manage Nsp

- [private-endpoint-connection](/Commands/servicebus/namespace/private-endpoint-connection/readme.md)
: servicebus namespace private-endpoint-connection

Expand All @@ -27,6 +33,9 @@ servicebus namespace
- [exists](/Commands/servicebus/namespace/_exists.md)
: Check the give namespace name availability.

- [failover](/Commands/servicebus/namespace/_failover.md)
: GeoDR Failover

- [list](/Commands/servicebus/namespace/_list.md)
: List the available namespaces within a resource group.

Expand Down
4 changes: 2 additions & 2 deletions Commands/servicebus/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Group] _servicebus_

servicebus
Manage Service Bus

## Subgroups

Expand All @@ -11,7 +11,7 @@ servicebus
: Manage Azure Service Bus Migration of Standard to Premium.

- [namespace](/Commands/servicebus/namespace/readme.md)
: servicebus namespace
: Manage Namespace

- [queue](/Commands/servicebus/queue/readme.md)
: servicebus queue
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.servicebus/checknameavailability", "version": "2023-01-01-preview", "swagger": "mgmt-plane/servicebus/ResourceProviders/Microsoft.ServiceBus/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VCdXMvQ2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyMy0wMS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "servicebus namespace", "commands": [{"name": "exists", "version": "2023-01-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.servicebus/checknameavailability", "version": "2023-01-01-preview", "swagger": "mgmt-plane/servicebus/ResourceProviders/Microsoft.ServiceBus/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VCdXMvQ2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyMy0wMS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"type": "string", "var": "$parameters.name", "options": ["name"], "required": true, "group": "Parameters", "help": {"short": "The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number."}}]}], "operations": [{"operationId": "Namespaces_CheckNameAvailability", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-01-01-preview"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "name", "arg": "$parameters.name", "required": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "message"}, {"type": "boolean", "name": "nameAvailable"}, {"type": "string", "name": "reason", "enum": {"items": [{"value": "InvalidName"}, {"value": "NameInLockdown"}, {"value": "NameInUse"}, {"value": "None"}, {"value": "SubscriptionIsDisabled"}, {"value": "TooManyNamespaceInCurrentSubscription"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/providers/microsoft.servicebus/checknameavailability" version="2023-01-01-preview" swagger="mgmt-plane/servicebus/ResourceProviders/Microsoft.ServiceBus/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VCdXMvQ2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyMy0wMS0wMS1wcmV2aWV3"/>
<commandGroup name="servicebus namespace">
<command name="exists" version="2023-01-01-preview" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.servicebus/checknameavailability" version="2023-01-01-preview" swagger="mgmt-plane/servicebus/ResourceProviders/Microsoft.ServiceBus/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlcnZpY2VCdXMvQ2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyMy0wMS0wMS1wcmV2aWV3"/>
<argGroup name="">
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Parameters">
<arg type="string" var="$parameters.name" options="name" required="True" group="Parameters">
<help short="The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number."/>
</arg>
</argGroup>
<operation operationId="Namespaces_CheckNameAvailability">
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability">
<request method="post">
<path>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2023-01-01-preview&quot;"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="name" arg="$parameters.name" required="True"/>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="string" name="message"/>
<prop type="boolean" name="nameAvailable"/>
<prop type="string" name="reason">
<enum>
<item value="&quot;InvalidName&quot;"/>
<item value="&quot;NameInLockdown&quot;"/>
<item value="&quot;NameInUse&quot;"/>
<item value="&quot;None&quot;"/>
<item value="&quot;SubscriptionIsDisabled&quot;"/>
<item value="&quot;TooManyNamespaceInCurrentSubscription&quot;"/>
</enum>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>
Loading