Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for slots #1117

Merged
merged 1 commit into from
Jan 23, 2016
Merged

fix for slots #1117

merged 1 commit into from
Jan 23, 2016

Conversation

yaananth
Copy link
Member

No description provided.

@@ -31,7 +31,7 @@
{
"name": "WebSiteName",
"type": "pickList",
"label": "Web App Name",
"label": "Web App Name with out slot.If your web app uses slot, mention in **Slot** field, else default **Production** slot is considered",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar/verbiage:

Web App Name. If your web app uses a slot, use the **Slot** field. Otherwise the default **Production** slot is used.

It looks like the web app name is always required. It's not: web app name XOR slot. So I think "Web App Name without a slot" should just be "Web App Name". Otherwise you're implying it's either or.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually. No..it is required. Websitenames with slot would have.. test(slot), I was suggesting instead of that...have websitename as just 'test' and put the slot in slot field.

@yaananth yaananth force-pushed the users/yaananth/fixes/azureSlot branch from 69e7b22 to a6aec19 Compare January 22, 2016 22:19
@ericsciple
Copy link
Contributor

The verbiage change is confusing. Assuming you fix that, change looks good.

Write-Host "Get-AzureWebSite -Name $WebSiteName -ErrorAction SilentlyContinue -ErrorVariable azureWebSiteError"
$azureWebSite = Get-AzureWebSite -Name $WebSiteName -ErrorAction SilentlyContinue -ErrorVariable azureWebSiteError
#Default slot to production so that we can get back single website with more details
$Slot = "Production"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing we don't need to worry about this needing to be localized?

@yaananth yaananth force-pushed the users/yaananth/fixes/azureSlot branch from a6aec19 to 577e214 Compare January 23, 2016 01:28
@yaananth
Copy link
Member Author

Updated, I will test thins, if code and everything looks good.then will update M94 PR

$streamReader.Close()
Write-Warning "Cannot update deployment status for $WebSiteName - $responseBody"
if($matchedNames -and $matchedNames.count -gt 0) {
$WebSiteName = $matchedNames[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$matchedWebSiteName = $azureWebSite.EnabledHostNames | Where-Object { $_ -like 'some wildcard pattern' } | Select-Object -First 1
if ($matchedWebSiteName) {
[...]

@yaananth yaananth force-pushed the users/yaananth/fixes/azureSlot branch from 577e214 to 12ccc5a Compare January 23, 2016 15:06
@ericsciple
Copy link
Contributor

Looks good.

yaananth added a commit that referenced this pull request Jan 23, 2016
@yaananth yaananth merged commit b567112 into master Jan 23, 2016
@bryanmacfarlane bryanmacfarlane deleted the users/yaananth/fixes/azureSlot branch September 19, 2016 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants