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

Migrate costs saver to Az Powershell module #22

Open
akuryan opened this issue May 23, 2019 · 0 comments
Open

Migrate costs saver to Az Powershell module #22

akuryan opened this issue May 23, 2019 · 0 comments
Labels
bug Something isn't working costs.saver Label to describe that issue is related to Azure Costs Saver module help wanted Extra attention is needed

Comments

@akuryan
Copy link
Owner

akuryan commented May 23, 2019

Main problem - Elastic pool, provisioned in vCore model will return nothing on pool.Dtu (or 0 in later version of AzureRm):

PS C:\Users\> $elasticPools[0]
ResourceId        : 
ResourceGroupName : RgName
ServerName        : sqlServerName
ElasticPoolName   : poolName
Location          : 
CreationDate      : 5/23/2019 12:01:24 PM
State             : Ready
Edition           : None
Dtu               :
DatabaseDtuMax    : -1
DatabaseDtuMin    : -1
StorageMB         : 102400
Tags              :
ZoneRedundant     : False

Same goes for database itself, as it shows Sku equal to None:

ResourceGroupName             : RgName
ServerName                    : sqlServerName
DatabaseName                  : sqlDbName
Location                      : 
DatabaseId                    : 
Edition                       : None
CollationName                 : 
CatalogCollation              :
MaxSizeBytes                  : 
Status                        : 
CreationDate                  : 
CurrentServiceObjectiveId     : 
CurrentServiceObjectiveName   : 
RequestedServiceObjectiveId   : 
RequestedServiceObjectiveName :
ElasticPoolName               : 
EarliestRestoreDate           : 
ResourceId                    : 
CreateMode                    :
ReadScale                     : 
ZoneRedundant                 : 



PS C:\Users\> $sqlDatabases[1].Edition
None
PS C:\Users\> $currentDbSku = $sqlDatabases[1].Edition
PS C:\Users\> $currentDbSku
None
@akuryan akuryan added bug Something isn't working help wanted Extra attention is needed costs.saver Label to describe that issue is related to Azure Costs Saver module labels May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working costs.saver Label to describe that issue is related to Azure Costs Saver module help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant