- ACR: https://docs.microsoft.com/en-us/rest/api/containerregistry/registries/checknameavailability
- Analysis: https://docs.microsoft.com/en-us/rest/api/analysisservices/servers/checknameavailability
- CDN: https://docs.microsoft.com/en-us/rest/api/cdn/checknameavailability/checknameavailability
- CosmosDB: https://docs.microsoft.com/en-us/rest/api/documentdbresourceprovider/databaseaccounts/checknameexists
- Event Hubs: https://docs.microsoft.com/en-us/rest/api/eventhub/namespaces/checknameavailability
- IoT Hubs: https://docs.microsoft.com/en-us/rest/api/iothub/iothubresource/checknameavailability
- Key Vault: https://docs.microsoft.com/en-us/rest/api/keyvault/vaults/checknameavailability
- Media: https://docs.microsoft.com/en-us/rest/api/media/mediaservice/checknameavailability
- MySQL: https://docs.microsoft.com/en-us/rest/api/mysql/checknameavailability/execute
- Notification Hubs: https://docs.microsoft.com/en-us/rest/api/notificationhubs/namespaces/checkavailability
This file contains hidden or 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
| app_name=your-unique-name | |
| app_repo_url=https://github.com/your-name-here/your-repo-here | |
| location=westus | |
| # choose from: `az webapp list-runtimes --linux` | |
| runtime='NODE|10.10' | |
| env_vars=( | |
| APPINSIGHTS_INSTRUMENTATIONKEY=af4b1113-bc85-41d0-be2b-343c3f178b7b | |
| YOUR_ENV_VAR=test | |
| ) |
This file contains hidden or 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
| declare prefix="azuregosdkjuglaptop" | |
| # cleanup_groups requests deletion of groups with names starting with `prefix` | |
| # it returns after request acceptance, i.e. it does not wait for deletion to actually finish | |
| # `prefix` string "___": first letters of names of groups to delete | |
| function cleanup_groups () { | |
| declare prefix=${1:-"___"} # default to unlikely value for safety | |
| # set up jmespath query | |
| jmespath_query="[? starts_with(name, \`${prefix}\`)].name" |
This file contains hidden or 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
| ## data plane | |
| func New() ManagementClient | |
| func NewWithoutDefaults() ManagementClient | |
| func (client ManagementClient) BackupKey(vaultBaseURL string, keyName string) (result BackupKeyResult, err error) | |
| func (client ManagementClient) BackupSecret(vaultBaseURL string, secretName string) (result BackupSecretResult, err error) | |
| func (client ManagementClient) CreateCertificate(vaultBaseURL string, certificateName string, parameters CertificateCreateParameters) (result CertificateOperation, err error) | |
| func (client ManagementClient) CreateKey(vaultBaseURL string, keyName string, parameters KeyCreateParameters) (result KeyBundle, err error) | |
| func (client ManagementClient) Decrypt(vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) | |
| func (client ManagementClient) DeleteCertificate(vaultBaseURL string, certificateName string) (result DeletedCertificateBundle, err error) |
This file contains hidden or 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
| ## Install a necessary packages | |
| $ sudo apt-get install kvm cloud-utils genisoimage | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" | |
| $ img_url="${img_url}/ubuntu-12.04-server-cloudimg-amd64-disk1.img" | |
| ## download the image | |
| $ wget $img_url -O disk.img.dist | |
| ## Create a file with some user-data in it |
This file contains hidden or 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
| const http = require('http'); | |
| const url = require('url'); | |
| // assumes a sibling .env file with | |
| // OPENWEATHER_APIKEY=your_key | |
| const dotenv = require('dotenv').config(); | |
| const appid = process.env.OPENWEATHER_APIKEY; | |
| function httpHandler (request, response) { | |
| let parsed_url = url.parse(request.url, true); |
Environment managers like Python's venv/virtualenv, Ruby's rvm, and Node's nvm make it easy for users to install and configure a runtime's versions and constituent components. Each virtual environment can support a specific runtime version and configuration and an independent set of global modules. In fact, some runtimes, such as .NET Core, can bundle and refer to a specific runtime configuration for each app. To summarize, environment managers enable developers to:
- install the runtime with a specific configuration.
- change runtime configurations for test and other needs.
- manage runtime and component updates.
NewerOlder