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

Adding UltraSSD to list of sku names when creating a managed disk #3453

Merged
merged 1 commit into from
May 16, 2019

Conversation

Keboo
Copy link
Contributor

@Keboo Keboo commented May 15, 2019

Though UltraSSD was added back in 1.18.0 (#2118), it appears that it is not properly passing the SKU name. This properly sets the SKU name when creating the disk.

Fixes #3306

@ghost ghost added the size/XS label May 15, 2019
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hi @Keboo,

Thanks for this, but really one question, why is there a if/else block like that instead of a direct assignment 🤔

@@ -149,6 +149,8 @@ func resourceArmManagedDiskCreateUpdate(d *schema.ResourceData, meta interface{}
skuName = compute.StandardLRS
} else if strings.EqualFold(storageAccountType, string(compute.StandardSSDLRS)) {
skuName = compute.StandardSSDLRS
} else if strings.EqualFold(storageAccountType, string(compute.UltraSSDLRS)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤔

Is there a reason this entire if/else block isn't just:

		skuName = string(compute.storageAccountType)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I was just mimicking the existing structure, but I am happy to change it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In talking with the team it seems like there is a reason behind this, as we are going to release later today i'm just going to merge it in as is and can revisit it at a later time

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks for the pr @Keboo, LGTM 🚀

@katbyte katbyte added this to the v1.28.0 milestone May 16, 2019
@katbyte katbyte merged commit 44d8087 into hashicorp:master May 16, 2019
@Keboo Keboo deleted the fix3306 branch May 16, 2019 15:47
katbyte added a commit that referenced this pull request May 16, 2019
@ghost
Copy link

ghost commented May 17, 2019

This has been released in version 1.28.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
	version = "~> 1.28.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jun 16, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error encountered while creating a managed disk with 'UltraSSD_LRS' option
2 participants