generated from arcus-azure/arcus.github.template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update with remaining v0.6 feature docs (#292)
* fix: update with remaining v0.6 feature docs * pr-fix: update with links to new management module on index page
- Loading branch information
1 parent
8f458ab
commit 030dd4e
Showing
5 changed files
with
140 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
docs/versioned_docs/version-v0.6.0/02-Features/powershell/azure-management.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
--- | ||
title: "Azure Management" | ||
layout: default | ||
--- | ||
|
||
# Azure Management | ||
|
||
This module provides the following capabilities: | ||
- [Azure Management](#azure-management) | ||
- [Installation](#installation) | ||
- [Removing a soft deleted API Management instance](#removing-a-soft-deleted-api-management-instance) | ||
- [Restoring a soft deleted API Management instance](#restoring-a-soft-deleted-api-management-instance) | ||
|
||
## Installation | ||
|
||
To have access to the following features, you have to import the module: | ||
|
||
```powershell | ||
PS> Install-Module -Name Arcus.Scripting.Management | ||
``` | ||
|
||
## Removing a soft deleted API Management instance | ||
|
||
Removes a soft deleted API Management instance. | ||
For more information on API Management and soft deletion see [here](https://docs.microsoft.com/en-us/azure/api-management/soft-delete#soft-delete-behavior). | ||
|
||
| Parameter | Mandatory | Description | | ||
| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- | | ||
| `Name` | yes | The name of the API Management instance that has been soft deleted. | | ||
| `SubscriptionId` | no | The Id of the subscription containing the Azure API Management instance. | | ||
| | | When not provided, it will be retrieved from the current context (Get-AzContext). | | ||
| `EnvironmentName`| no | The name of the Azure environment where the Azure API Management instance resides. (default: `AzureCloud`) | | ||
| `AccessToken` | no | The access token to be used to remove the Azure API Management instance. | | ||
| | | When not provided, it will be retrieved from the current context (Get-AzContext). | | ||
| `ApiVersion ` | no | The version of the management API to be used. (default: `2021-08-01`) | | ||
|
||
> :bulb: The `ApiVersion` has successfully been tested with version `2021-08-01`. | ||
**Example** | ||
```powershell | ||
PS> Remove-AzApiManagementSoftDeletedService -Name "my-apim" | ||
# Checking if the API Management instance with name 'my-apim' is listed as a soft deleted service | ||
# API Management instance has been found for name 'my-apim' as a soft deleted service | ||
# Removing the soft deleted API Management instance 'my-apim' | ||
# Successfully removed the soft deleted API Management instance 'my-apim' | ||
``` | ||
|
||
## Restoring a soft deleted API Management instance | ||
|
||
Restores a soft deleted API Management instance. | ||
For more information on API Management and soft deletion see [here](https://docs.microsoft.com/en-us/azure/api-management/soft-delete#soft-delete-behavior). | ||
|
||
| Parameter | Mandatory | Description | | ||
| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- | | ||
| `Name` | yes | The name of the API Management instance that has been soft deleted. | | ||
| `SubscriptionId` | no | The Id of the subscription containing the Azure API Management instance. | | ||
| | | When not provided, it will be retrieved from the current context (Get-AzContext). | | ||
| `EnvironmentName`| no | The name of the Azure environment where the Azure API Management instance resides. (default: `AzureCloud`) | | ||
| `AccessToken` | no | The access token to be used to restore the Azure API Management instance. | | ||
| | | When not provided, it will be retrieved from the current context (Get-AzContext). | | ||
| `ApiVersion ` | no | The version of the management API to be used. (default: `2021-08-01`) | | ||
|
||
> :bulb: The `ApiVersion` has successfully been tested with version `2021-08-01`. | ||
**Example** | ||
```powershell | ||
PS> Restore-AzApiManagementSoftDeletedService -Name "my-apim" | ||
# Checking if the API Management instance with name 'my-apim' is listed as a soft deleted service | ||
# API Management instance has been found for name 'my-apim' as a soft deleted service | ||
# Restoring the soft deleted API Management instance 'my-apim' | ||
# Successfully restored the soft deleted API Management instance 'my-apim' | ||
``` |