New-CmAzPaaSWebStatic

Deploys a static website utilising a CDN and Blob Storage.

Completes the following: * Deploys a ResourceGroup, CDNProfile, Storage account and Endpoint with their details set via the Settings object or file. * Sets the endpoint to allow static websites. * Sets CDN rules.

This command forms part of the PaaS Building Block.

Parameters

-SettingsFile

Required. (String) File path for the settings file to be converted into a settings object.

-SettingsObject

Required. (Object) An object including all the properties required to configure the target website, with a structure following the same convention as the YAML file. This allows properties to be dynamically generated rather than simply loaded from a file.

-TagSettingsFile

Required. (String) File path for the tag settings file to be converted into a tag settings object.

-WhatIf

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

-Confirm

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

Examples

Example 1

1
2
3
    New-CmAzPaaSWebStatic -SettingsFile "/mysite/paas.web.static.mysite.yml"
    Creates a new static website using settings from the specified YML file.
  

Example 2

1
2
3
4
    New-CmAzPaaSWebStatic -SettingsObject $settings
    Creates a new static website using settings from the specified configuration data, which
must match the format of the documented YML file.
  

Example 3

1
2
3
4
5
6
7
8
    /mysite/paas.web.static.mysite.yml
    # The input file below sets up the static web properties
name: mywebsite
location: UK South
redirectUrl: https://www.mywebsite.com
customDomains:
- www.mywebsite.com